@extends('layouts.app') @section('title') Payroll @stop @section('breadcrumb') @stop @section('content')

Payroll For {{ Carbon\Carbon::now()->format('F, Y')}}

@foreach($employees as $employee) @foreach($employee->policies as $policy) @if($policy->policy->type == \App\Policy::allowance) @elseif($policy->policy->type == \App\Policy::deduction) @endif @endforeach @endforeach
Employees Benefits Deductions Net Pay Action

Basic
{{number_format($employee->basic_salary)}} PKR

@foreach($employee->policies as $policy) @if($policy->policy->type == \App\Policy::allowance)
{{$policy->policy->name}}
{{number_format($policy->policy->amount)}} PKR
@endif @endforeach

{{number_format($allowance)}} PKR
@foreach($employee->policies as $policy) @if($policy->policy->type == \App\Policy::deduction)
{{$policy->policy->name}}
({{number_format($policy->policy->amount)}}) PKR
@endif @endforeach

({{number_format($deduction)}}) PKR
{{number_format($employee->basic_salary + $allowance - $deduction)}} PKR @if($salaryPaid[$employee->id] == true)  Run @else  Run @endif
@stop @section('js') @stop