@if(nCount($results)>0) {!! $sl=null !!} @foreach($results AS $value) @if($value->status == 0) @else @endif @endforeach @else @endif
S/L Month Photo Employee Name Pay Grade Basic Salary Gross Salary Status Action
{!! ++$sl !!} @php $monthAndYear = explode('-',$value->month_of_salary); $month = $monthAndYear[1]; $dateObj = DateTime::createFromFormat('!m', $month); $monthName = $dateObj->format('F'); $year = $monthAndYear[0]; $monthAndYearName = $monthName." ".$year ; echo $monthAndYearName; @endphp @if($value->employee->photo != '') user-img @else user-img @endif @if(isset($value->employee->first_name)) {!! $value->employee->first_name !!} {{$value->employee->last_name}} @endif @if(isset($value->employee->department->department_name))
Department : {{$value->employee->department->department_name}} @endif
@if(isset($value->employee->payGrade->pay_grade_name)) {!! $value->employee->payGrade->pay_grade_name !!}(Monthly) @endif @if(isset($value->employee->hourlySalaries->hourly_grade)) {!! $value->employee->hourlySalaries->hourly_grade !!}(Hourly) @endif {!! $value->basic_salary !!} {!! $value->gross_salary !!} Unpaid Paid @if($value->status == 0) @else @endif
No data found !
@if(nCount($results)>0)
{{$results->links()}}
@endif