@extends('layouts.master') @section('content')
# | Employee Name | Designation | Grade | Salary | Due | Payable | Status | Action |
---|---|---|---|---|---|---|---|---|
{{ $i++ }} | {{ @$row->employee->name }} | {{ @$row->designationName->designation['name'] }} | {{ @$row->grade->name }} | @foreach($row->psHead as $data) @php $salary = $salary + $data->amount @endphp @endforeach @if($salary >0) {{ number_format($salary,2) }} @else Salary not update @endif | @foreach($row->due as $due) @php $gross = $gross + $due->gross_amount; $paid = $paid + $due->paid_amount @endphp @endforeach @php $total_due = $gross - $paid @endphp {{ number_format($total_due,2) }} | {{ number_format($total_due,2) }} | @if($total_due <= 0) @else @endif | @if(\Auth::user()->utype==1) Pay Now Details @endif |