@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{{ csrf_field() }}
# |
Employee Name |
Designation |
Grade |
Salary |
Due |
Payable Amount |
Status |
@if($all)
@foreach($all as $row)
{{ $i++ }} |
{{ $row->employee->name }} |
{{ $row->designationName->designation['name'] }} |
{{ $row->grade->name }} |
@foreach($row->psHead as $data)
@php $salary = $salary + $data->amount @endphp
@endforeach
{{ number_format($salary,2) }}
|
@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_payable = $salary + $total_due,2) }} |
@if($total_due <= 0)
@else
@endif
|
@php $total = $total + $total_payable @endphp
@endforeach
@endif
Total Salary : {{ number_format($total,2) }} TK.