@if($employeeList->count()>0) @foreach($employeeList as $val) @php $value = round($val->earning_total - $val->total_paid_amount, 2); $value = $value < 0 ? 0 : $value; $value = $value == -0 ? 0 : $value; @endphp @endforeach @else @endif
Image Employee Name Location Due Payment Last Payment Action
Employee img {{ucfirst($val->getScheduleEmployee['first_name'].' '.$val->getScheduleEmployee['last_name'])}} {{ (!empty($val->address)) ? $val->address : '-' }}$ {{ $value }} {{ (!empty($val->last_paid_amount)) ? '$ '.getPriceFormatedValue($val->last_paid_amount) : '-' }}
@php emptyListMessage('Employee Payment'); @endphp
{{$employeeList->links('pagination.pagination.default')}}