@extends('backend.layouts.master') @section('body') @push('header_script') @endpush
@component('components.beardcrumb') {{-- /*Page Title Goese Here in this slot variable*/ --}} @slot('title') @lang('user.profile') @endslot @endcomponent
@lang('user.profile_details')
@php use App\Models\User; $user = User::find(Auth::user()->id); $path = public_path().'/Backend/profile/'.$user->profile; @endphp @if(file_exists($path)) @else @endif
@if(config('app.locale') == 'en') {{Auth::user()->name ?: Auth::user()->name_bn}}@else {{Auth::user()->name_bn ?: Auth::user()->name}}@endif
@if(config('app.locale') == 'en') {{Auth::user()->roles()->pluck('name')->first() ?: Auth::user()->roles()->pluck('name_bn')->first() }} @else {{Auth::user()->roles()->pluck('name_bn')->first() ?: Auth::user()->roles()->pluck('name')->first() }} @endif
{{-- --}}


About

@php Use App\Traits\Date; @endphp
@lang('common.activities')
@foreach ($data['activities'] as $ac)
@php $path2 = public_path().'/Backend/profile/'.$ac->activityBy->profile; @endphp @if(file_exists($path2)) {{$ac->activityBy->name}} @else {{Auth::user()->name}} @endif
@if(config('app.locale') == 'en') @if(Auth::user()->id == $ac->activityBy->id) @lang('common.you') @else {{$ac->activityBy->name ?: $ac->activityBy->name_bn}} @endif @else @if(Auth::user()->id == $ac->activityBy->id) @lang('common.you') @else {{$ac->activityBy->name_bn ?: $ac->activityBy->name}} @endif @endif @if(config('app.locale') == 'en') {{$ac->description_en ?: $ac->description_bn}} @else {{$ac->description_bn ?: $ac->description_en}} @endif
@if(date('Y-m-d') == $ac->date) @lang('common.today') @else {{Date::DbToOriginal('-',$ac->date)}} @endif , {{Date::twelveHrTime($ac->time)}}

@endforeach
{{ $data['activities']->links() }}
{{-- --}} @push('footer_script') @endpush @endsection