@include('layouts.includes.template_setting')

Staff Payroll Ledger - {{ \Carbon\Carbon::parse(now())->format('Y-m-d')}}

User: {{isset(auth()->user()->name)?auth()->user()->name:""}}
Date: {{ \Carbon\Carbon::parse(now())->format('Y-m-d')}}
@if($data['payroll_master']->count() > 0) @php($i=1) @foreach($data['payroll_master'] as $payrollMaster) @if (isset($data['pay_salary']) && $data['pay_salary']->count() > 0) @php($i=1) @foreach($data['pay_salary'] as $pay_salary) @if($pay_salary->salary_masters_id == $payrollMaster->id) @php($i++) @endif @endforeach @endif @endforeach @else @endif
TagLine Head DueDate Amount Allowance Fine Paid Balance
{{ $payrollMaster->tag_line }} {{ ViewHelper::getPayrollHeadById($payrollMaster->payroll_head) }} {{ \Carbon\Carbon::parse($payrollMaster->fee_due_date)->format('Y-m-d')}} {{ $amount = $payrollMaster->amount }} {{ $allowance = $payrollMaster->paySalary()->sum('allowance') }} {{ $fine = $payrollMaster->paySalary()->sum('fine') }} {{ $paid_amount = $payrollMaster->paySalary()->sum('paid_amount') }} {{ $net_balance = (($amount +$allowance) - ($fine + $paid_amount)) }}
{{ $pay_salary->salary_masters_id.'/'.$i }} {{ $pay_salary->payment_mode }} {{ \Carbon\Carbon::parse($pay_salary->date)->format('Y-m-d')}} {{ $pay_salary->allowance }} {{ $pay_salary->fine }} {{ $pay_salary->paid_amount }}
Total {{ $data['staff']->payroll_amount?$data['staff']->payroll_amount:'-' }} {{ $data['staff']->discount?$data['staff']->discount:'-' }} {{ $data['staff']->fine?$data['staff']->fine:'-' }} {{ $data['staff']->paid_amount?$data['staff']->paid_amount:'-' }} {{ $data['staff']->balance?$data['staff']->balance:'-' }}
Total :{{$data['staff']->paid_amount}}/-
In Word: {{ ViewHelper::convertNumberToWord($data['staff']->paid_amount) }}only.
Total Balance :{{$data['staff']->balance }}/-
Balance In Word: {{ ViewHelper::convertNumberToWord($data['staff']->balance ) }}only.
@if(isset($generalSetting->print_footer))
{!! $generalSetting->print_footer !!}
@endif