@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() }}
Name : {{ $single->employee->name }}
Grade : {{ $single->grade->name }}


@php $total=0 @endphp @foreach($single->psHead as $data) @php $total = $total + $data->amount @endphp @endforeach
{{$data->head->name}} {{ number_format($data->amount,2) }}
Total Salary {{ number_format($total,2) }} TK.

Pay Now :

@php $total_due=0 @endphp @foreach($single->payableDue as $payableDue) @if($payableDue->gross_amount > $payableDue->paid_amount) @php $due= $payableDue->gross_amount - $payableDue->paid_amount; $total_due = $total_due + $due @endphp @endif @endforeach
{{ date('d/m/Y', strtotime($payableDue->date)) }}
Payable Amount {{ number_format($total_due) }} TK.
Media
Description
{{-- Cancel --}}
@stop @section('script') @if(Session::has('msg'))
×   {{Session::get('msg')}}
@endif @stop