@php $ordinalNumberContainer = $model->getOrdinalNumber(); @endphp @if($reportingBossHistories->count() > 0)
Supervisor Details
@endif @foreach($reportingBossHistories as $reportingBossHistory)
{{-- Super Admin can see the history id --}} @if(Auth::user()->isSuperAdminUser()) @endif @php $boss = $reportingBossHistory->boss; $bossEmp = $boss ? $reportingBossHistory->boss->employee : null; $bossOrg = $bossEmp ? $bossEmp->organization : null; $bossUser = $bossOrg->user; @endphp @if($bossEmp && $bossOrg) @else @endif
Employee Id {{ $bossEmp->emp_id }} Employee Name {{ $bossEmp->emp_name_english }}
Designation {{ $bossUser->currentPosition()->name ?? '' }} Project {{ $bossOrg->project->name }}
Comment {{ $reportingBossHistory->boss_comment }} Status {{ $reportingBossHistory->status}}
{{ $reportingBossHistory->status }} at {{ date('d M Y',strtotime($reportingBossHistory->created_at) )}}
Not Found

@endforeach