Employee List

@php $i =0; @endphp @php $count = 0; @endphp @foreach($model as $m) @foreach($m->allocation as $allocation) @if(in_array($m->allocation_id,$employee_form_prc)) @php $i++; @endphp @php $date=date('d-m-Y',strtotime($m->created_at)) @endphp @if(count($prc) > 0) @foreach($prc as $p) @if($p->e_id == $m->emp_id) @if($m->status == '1' || $m->status == '2') @else @endif @endif @break @endforeach @else @php $count++; @endphp @endif @endif @endforeach @endforeach @php $pending = 0; @endphp @foreach($model as $m) @foreach($m->allocation as $allocation) @if(!in_array($m->allocation_id,$employee_form_prc)) @php $i++; @endphp @php $date=date('d-m-Y',strtotime($m->created_at)) @endphp @if(count($prc) > 0) @foreach($prc as $p) @if($p->e_id == $m->emp_id) @if($m->status == '1' || $m->status == '2') @php $date=date('m-Y',strtotime($p->submitted_on)) @endphp @else @php $pending = 1; @endphp @endif @endif @break @endforeach @else @php $count++; @endphp @endif @if($pending == '0') @else @endif @endif @endforeach @endforeach
Sr No. Employee Id Employee Name Submission By Allocation Date Evaluation Date Form Status PRC Score Action Action
{{$i}} {{$allocation->id}} {{$allocation->first_name}} {{$allocation->last_name}} Management and HR {{$date}}{{ date('m-Y',strtotime($p->submitted_on)) }} Completed- Pending- -{{ $score[$m->id] }}
{{$i}} {{$allocation->id}} {{$allocation->first_name}} {{$allocation->last_name}} Evalutor {{$date}}{{$date}} Completed- Pending- -{{ $score[$m->id] }}-