@extends('layouts.app') @section('title') {{$doc_charges_label_name}} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @php $breadcrumbMainIcon = 'fas fa-dolly'; $all = checkRolePermission("SellDocumentationCharges.All"); $create = checkRolePermission("SellDocumentationCharges.Create"); $delete = checkRolePermission("SellDocumentationCharges.Delete"); $edit = checkRolePermission("SellDocumentationCharges.Edit"); $pdf = checkRolePermission("SellDocumentationCharges.Pdf"); $permanently_delete = checkRolePermission("SellDocumentationCharges.PermanentlyDelete"); $restore = checkRolePermission("SellDocumentationCharges.Restore"); $show = checkRolePermission("SellDocumentationCharges.Show"); $trash_show = checkRolePermission("SellDocumentationCharges.TrashShow"); $till_month = "till_month"; @endphp @section('content')

{{__('lang.receivable')}} {{$doc_charges_label_name}} {{($customDocChargesName)}} ( {{ $sell->branch->name ?? '-' }} || {{ $sell->customer->name ?? '-' }} || {{ $sell->registration_no ?? '-' }} || {{ $sell->product->flat_size . ' ' . $sell->product->size_in ?? '-' }} )

@if(count($documentation_charges) > 0) @php $total_payable_amount = 0; $total_received_amount = 0; $total_outstanding_amount = 0; @endphp @foreach ($documentation_charges as $documentation_charge) @php $payable_amount = $documentation_charge->payable_amount; $received_amount = $documentation_charge->received_amount; $outstanding_amount = $payable_amount - $received_amount; $total_payable_amount += $payable_amount; $total_received_amount += $received_amount; $total_outstanding_amount += $outstanding_amount; @endphp @endforeach @else @endif
# {{__('lang.term_name')}} {{__('lang.payable_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.schedule_date')}} {{__('lang.received')}} {{$transaction->systemSettingCurrency()}} {{__('lang.received_date')}} {{$transaction->systemSettingCurrency()}} {{__('lang.outstanding_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.action')}}
status == "Settled") disabled @endif /> {{$loop->iteration}} {{$documentation_charge->term}} {{$transaction->convert_money_format($payable_amount)}} {{$transaction->date_format($documentation_charge->schedule_date)}} {{$transaction->convert_money_format($received_amount)}} {{ $transaction->date_format($documentation_charge->last_received_date) ?? '-' }} {{$transaction->convert_money_format($outstanding_amount)}}
@if($documentation_charge->status != "Settled") @endif
{{__('lang.there_has_no_received_schedule')}}
{{__('lang.total')}} {{ $total_payable_amount }} {{ $total_received_amount }} {{ $total_outstanding_amount }}
# {{__('lang.term_name')}} {{__('lang.payable_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.schedule_date')}} {{__('lang.received')}} {{$transaction->systemSettingCurrency()}} {{__('lang.received_date')}} {{$transaction->systemSettingCurrency()}} {{__('lang.outstanding_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.action')}}

{{__('lang.receipt')}} ( {{ $sell->branch->name ?? '-' }} || {{ $sell->customer->name ?? '-' }} || {{ $sell->registration_no ?? '-' }} )

@if(count($actual_receiveds) > 0) @foreach ($actual_receiveds as $actual_received) @php $term_names = $actual_received->schedule_general_receipt_items->implode('term' , ' , '); $received_amount = $actual_received->actual_amount; $outstanding_amount = $payable_amount - $received_amount; @endphp @endforeach @else @endif
# {{__('lang.receipt_no')}} {{__('lang.payment')}} {{__('lang.received_amount')}} {{ $transaction->systemSettingCurrency() }} {{__('lang.date_of_collection')}} {{__('lang.mode_of_payment')}} {{__('lang.option')}}
{{$loop->iteration}} {{$actual_received->receipt_no}} {{$term_names}} {{$transaction->convert_money_format($received_amount)}} {{$transaction->date_format($actual_received->date_of_collection_new)}} {{ucWords($actual_received->made_of_payment)}}
{{__('lang.there_is_no_actual_payment')}}
# {{__('lang.receipt_no')}} {{__('lang.payment')}} {{__('lang.received_amount')}} {{ $transaction->systemSettingCurrency() }} {{__('lang.date_of_collection')}} {{__('lang.mode_of_payment')}} {{__('lang.option')}}
@stop @push('include-js') {{-- All datagrid --}} @endpush