@php $files = App\Models\FileReceiving::InHand()->whereHas('sell',function($cond) use($land) { $cond->where('branch_id',$land->branch_id); })->get(); @endphp
@if(count($land_schedule) == 0) {{__('lang.add_schedule')}} @else {{__('lang.edit_schedule')}} @endif

{{__('lang.payable_amount')}}{{$transaction->systemSettingCurrency()}}

@if(count($land_schedule) > 0)

@if(userAllowedUnofficial()) @endif @if(userAllowedUnofficial()) @endif @php $outstanding = 0; $total_official_amount = 0; $total_unofficial_amount = 0; $total_paid_official_amount = 0; $total_paid_unofficial_amount = 0; $total_outstanding_amount = 0; @endphp @foreach($land_schedule as $key => $schedule) @php $outstanding = ($schedule->official_amount+$schedule->un_official_amount) - ($schedule->payment_official_amount+$schedule->payment_un_official_amount); $total_official_amount += $schedule->official_amount; $total_unofficial_amount += $schedule->un_official_amount; $total_paid_official_amount += $schedule->payment_official_amount; $total_paid_unofficial_amount += $schedule->payment_un_official_amount; $total_outstanding_amount += $outstanding; @endphp @if(userAllowedUnofficial()) @endif @if(userAllowedUnofficial()) @endif @endforeach
{{__('lang.s_no')}} {{__('lang.term')}} {{__('lang.schedule_date')}} {{ (userAllowedUnofficial()) ? __('lang.official_amount') : __('lang.amount') }}{{__('lang.unofficial')}}{{$transaction->systemSettingCurrency()}}{{__('lang.last_paid_date')}} {{ (userAllowedUnofficial()) ? __('lang.paid_official_amount') : __('lang.paid_amount')}}{{__('lang.paid_un_official')}} {{$transaction->systemSettingCurrency()}}{{__('lang.outstanding')}} {{$transaction->systemSettingCurrency()}} {{__('lang.reference')}} {{__('lang.options')}}
@if($outstanding == 0) @else @endif {{ $key+1 }} {{ $schedule->terms->name }} {{ date(config('settings.date_format'), strtotime(trim(str_replace('/', '-', $schedule->schedule_date))) ) }} {{ number_format($schedule->official_amount,2) }}{{ number_format($schedule->un_official_amount,2) }}{{ isset($payment_date[$schedule->id]->paymentVoucher->voucher_date) ? date(config('settings.date_format'), strtotime(trim(str_replace('/', '-', $payment_date[$schedule->id]->paymentVoucher->voucher_date))) ) : "-" }} {{ number_format($schedule->payment_official_amount,2) }}{{ number_format($schedule->payment_un_official_amount,2) }}{{ number_format($outstanding,2) }} {{ isset($payment_date[$schedule->id]->paymentVoucher->particulars) ? $payment_date[$schedule->id]->paymentVoucher->particulars : "-" }}
Total {{number_format($total_official_amount)}} {{number_format($total_unofficial_amount)}} {{number_format($total_paid_official_amount)}} {{number_format($total_paid_unofficial_amount)}} {{number_format($total_outstanding_amount)}}
@endif @if(count($payment_vouchers) > 0)

{{__('lang.payment_vouchers')}}


@php $outstanding = 0; @endphp @foreach($payment_vouchers as $key => $payment) @endforeach
{{__('lang.s_no')}} {{__('lang.pv_no')}} {{__('lang.date')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.mode_of_payment')}} {{__('lang.reference')}} {{__('lang.options')}}
{{ $key+1 }} {{ $payment->pv_no }} {{ date(config('settings.date_format'), strtotime(trim(str_replace('/', '-', $payment->voucher_date))) ) }} {{ number_format($payment->amount,2) }} {{ $payment->mode_of_payment }} {{ $payment->particulars }}
{{__('lang.s_no')}} {{__('lang.pv_no')}} {{__('lang.date')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.mode_of_payment')}} {{__('lang.reference')}} {{__('lang.options')}}
@endif @if(count($land->file_adjustments) > 0)

{{__('lang.file_adjustment')}}


@foreach($land->file_adjustments as $file_adjustment) @endforeach
{{__('lang.s_no')}} {{__('lang.adjustment_no')}} {{__('lang.term')}} {{__('lang.file_number')}} {{__('lang.date')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.remarks')}} {{__('lang.options')}}
{{ $loop->iteration }} {{ $file_adjustment->voucher_no }} {{ $file_adjustment->land_schedule->term->name ??'-' }} {{ $file_adjustment->file_receiving->file_number ?? '-' }} {{ $transaction->date_format($file_adjustment->adjustment_date) }} {{ $transaction->convert_money_format($file_adjustment->amount) }} {{ $file_adjustment->remarks }}
{{__('lang.s_no')}} {{__('lang.adjustment_no')}} No {{__('lang.term')}} {{__('lang.file_number')}} {{__('lang.date')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.remarks')}} {{__('lang.options')}}
@endif