{{\App\Models\Setting::where('setting_key','core.company_name')->first()->setting_value}}

{{trans_choice('payroll::general.payslip',1)}}

@if(!empty($payroll->description)) @endif
{{trans_choice('payroll::general.employee',1)}} {{trans_choice('core::general.name',1)}}
{{$payroll->employee_name}}
{{trans_choice('payroll::general.payroll',1)}} {{trans_choice('core::general.date',1)}}
{{$payroll->date}}
@foreach($payroll->payroll_items->where('type','allowance')->all() as $key) @endforeach
{{trans_choice('core::general.description',1)}} {{trans_choice('core::general.amount',1)}}
{{number_format($payroll->work_duration,2)}} @ {{number_format($payroll->amount_per_duration,2)}}/{{$payroll->duration_unit}}
{{number_format($payroll->total_duration_amount,2)}}
{{$key->name}}
{{number_format($key->amount,2)}}
@foreach($payroll->payroll_items->where('type','deduction')->all() as $key) @endforeach
{{trans_choice('core::general.description',1)}} {{trans_choice('core::general.amount',1)}}
{{$key->name}}
{{number_format($key->amount,2)}}
{{trans_choice('payroll::general.total',1)}} {{trans_choice('payroll::general.allowance',2)}}
{{number_format($payroll->total_allowances+$payroll->total_duration_amount,2)}}
{{trans_choice('payroll::general.total',1)}} {{trans_choice('payroll::general.deduction',2)}}
{{number_format($payroll->total_deductions,2)}}

{{trans_choice('payroll::general.net',1)}} {{trans_choice('payroll::general.pay',1)}}
{{number_format($payroll->gross_amount,2)}}
@foreach($payroll->payroll_payments as $key) @endforeach
{{trans_choice('general.net_pay_distribution',1)}}
{{trans_choice('core::general.bank',1)}} {{trans_choice('core::general.account',1)}} {{trans_choice('core::general.payment',1)}} {{trans_choice('payroll::general.type',1)}} {{trans_choice('payroll::general.amount',1)}} {{trans_choice('core::general.date',1)}}
@if(!empty($key->payment_detail)) {{$key->payment_detail->bank_name}} @endif
@if(!empty($key->payment_detail)) {{$key->payment_detail->account_number}} @endif
@if(!empty($key->payment_detail)) @if(!empty($key->payment_detail->payment_type)) {{$key->payment_detail->payment_type->name}} @endif @endif
{{number_format($key->amount,2)}}
{{$key->submitted_on}}
{{trans_choice('core::general.description',2)}}
{!! $payroll->description !!}