@php use App\Models\warehouse;use Carbon\Carbon; @endphp {{get_setting('site_name')}} Advance Salary Statement
@php $logo = get_setting('header_logo'); @endphp
@if($logo != null) @endif {{ get_setting('contact_address',null,App::getLocale()) }}

Advance Salary Statement

Employee Name {{$staff->user->name}} Employee Code 0{{$staff->id}}
Designation {{$staff->designation->name}} Join Date {{date('d-m-Y',strtotime($staff->joing_date))}}
Branch/Warehouse {{warehouse::findorfail($staff->user->warehouse_id)->value('name')}} Department {{$staff->department->name}}
Advance Salary Details
Application Date Advance Salary Amount Payment Start From Duration Application Status Payment Method Remarks
{{$payslip->apply_date}} {{$payslip->amount}} {{date('F',mktime(0,0,0,$payslip->month,1))}} {{$payslip->duration}}{{__('Month')}} @if($payslip->status==1) {{__('Approved')}} @else {{__('Not approved')}} @endif {{$payslip->payment_method}} {{$payslip->reason}}
Schedules of payment @php $paid_amount=0; @endphp @foreach($payments as $payment) @endforeach
Payment Year Payment Month Scheduled Amount Payment Method Payment Status Payment Date
{{$payment->year}} {{$payment->month}} {{$payment->amount}} {{$payslip->payment_method}} @if($payment->status==1) @php $paid_amount+=$payment->amount @endphp {{__('Paid')}} @else {{__('unpaid')}} @endif @if($payment->payment_date!=null) {{date('d-m-Y',strtotime($payment->payment_date))}} @endif
Summary
Advance Salary Amount Total Repaid Total Due Full Repayment In
{{$payslip->amount}} {{$paid_amount}} {{$payslip->amount-$paid_amount}} {{$payslip->duration}} {{__('Month')}}
N.B: This is a system generated document