@extends('layouts.master') @section('content')
{{$title}}
@if(\Auth::user()->utype==1) Back @endif
@if ($errors->any())
    @foreach ($errors->all() as $error)
  1. {{ $error }}
  2. @endforeach
@endif {{ csrf_field() }}
@if($all) @foreach($all as $row) @php $total = $total + $total_payable @endphp @endforeach @endif
# Employee Name Designation Grade Salary Due Payable Amount Status
{{ $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
Total Salary : {{ number_format($total,2) }} TK.
Cancel
@stop @section('script') @if(Session::has('msg'))
×   {{Session::get('msg')}}
@endif @stop