@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 }}

@foreach($single->psHead as $data) head->id; $old_amount = $old_amount + $data->amount; ?> @endforeach @foreach($head as $row) @if(!in_array($row->head_id,$newhead)) @php $new_amount = $new_amount + $row->amount @endphp @endif @endforeach
{{$data->head->name}}
{{$row->head->name}}
Total Salary : {{ number_format($old_amount + $new_amount) }} TK.
Cancel
@stop @section('script') @if(Session::has('msg'))
×   {{Session::get('msg')}}
@endif @stop