Perfomance Review Form List Yearly

@if(count($model) > 0) Export Excel @endif
{{csrf_field()}}
@php $i = 1; @endphp @foreach($model as $index => $m) @foreach($m->employee as $s) @endforeach @php $date = date('d-m-Y',strtotime($m->created_at)); @endphp @endforeach
SR. No Employee Id Employee Name Date Status PRC Score Action
{{$i++}}{{$s->id}} {{$s->first_name}} {{$s->last_name}}{{$date}} @foreach($data_pending as $dp) @php $count = 0; @endphp @if($m->emp_id == $dp->id) @if($dp->pending == 0) Completed @else @php ++$count @endphp Still in Progress @endif @else @endif @endforeach @foreach($data_pending as $dp) @php $count = 0; @endphp @if($m->emp_id == $dp->id) @if($dp->pending == 0) {{ $score[$m->emp_id] }} @else @php ++$count @endphp - @endif @else @endif @endforeach
@if(session('done'))