@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @php $is_official = userAllowedUnofficial(); $current_date = \Carbon\Carbon::now()->format('Y-m-d'); function branch($id) { $branch = App\Models\Branch::find($id); return $branch->name; } function block($id) { $block = App\Models\Block::find($id); return $block->name; } @endphp @section('content') {{--

Printing Date & Time: {{ $extra['current_date_time'] }}

--}}
@include('admin.partials.header', ['extra' => $extra]) {{-- --}} {{-- --}} {{-- --}} @if($terms != null) @foreach($terms as $term_key => $term) @endforeach @endif @if($data == null) @else @foreach($data as $schedule) @php $g_total_receivable+=$schedule->total_receivable; $g_total_paid_amount+=$schedule->paid_amount; $g_total_balance+=$schedule->balance; if($schedule->total_receivable == 0) { $total_collection_percentage = 0; } else { $total_collection_percentage = $schedule->paid_amount / $schedule->total_receivable * 100 ; } @endphp {{-- --}} {{-- --}} {{-- --}} @foreach($terms as $term_wise_key => $term_wise_data) @if($schedule_data[$term_wise_data][$schedule->sell_id] != null) @php $total_amount[$term_wise_key] += $schedule_data[$term_wise_data][$schedule->sell_id]; @endphp @else @endif @endforeach @endforeach @endif {{-- --}} @if($terms != null) @foreach($terms as $term_wise_key => $term_wise_data) @endforeach @endif
{{__('lang.serial_no')}} {{__('lang.registration_no')}} {{__('lang.product')}} {{__('lang.customer_name')}} {{__('lang.customer_contact')}} {{__('lang.booking_date')}} {{__('lang.last_payment_date')}}BlockProperty TypeTotal Receivable Paid Amount {{$transaction->systemSettingCurrency()}} Balance Total collection percentage Till Month balance{{$term}}
{{$loop->iteration}} {{$schedule->registration_no}} {{$schedule->product}} {{$schedule->customer}} {{$schedule->phone}}{{$schedule->block}}{{$schedule->type}}{{$schedule->sale_date}} {{$schedule->last_payment_date}}{{$transaction->convert_money_format($schedule->total_receivable)}} {{$transaction->convert_money_format($schedule->paid_amount)}} {{$transaction->convert_money_format($schedule->balance)}} {{$transaction->convert_money_format($total_collection_percentage)}} % {{$transaction->convert_money_format($schedule->till_month_balance)}}{{$transaction->convert_money_format($schedule_data[$term_wise_data][$schedule->sell_id])}}0
{{__('lang.total')}}:{{ $transaction->convert_money_format($g_total_receivable)}} {{ $transaction->convert_money_format($g_total_paid_amount)}} {{ $transaction->convert_money_format($g_total_balance)}} {{ $transaction->convert_money_format($g_total_till_month_balance)}}{{$transaction->convert_money_format($total_amount[$term_wise_data])}}
@if ($search['from'] != null && $search['to'] == null) @endif @if ($search['to'] != null && $search['from'] == null) @endif @if ($search['from'] == null && $search['to'] == null) @endif @if ($search['from'] != null && $search['to'] != null) @endif @if($search['block'] != 0) @else @endif @if($search['mode_of_Payment'] != 0) @else @endif
{{__('lang.from')}} : {{ date('Y-m-d', strtotime(str_replace('-', '/', $search['from']))) }}
{{__('lang.to')}} : {{ date('Y-m-d', strtotime(str_replace('-', '/', $search['to']))) }}
Search Till : {{ $current_date }}
{{__('lang.from')}} : {{ date('Y-m-d', strtotime(str_replace('-', '/', $search['from']))) . ' to ' . date('Y-m-d', strtotime(str_replace('/', '-', $search['to']))) }}
{{__('lang.project')}} : {{ branch($search['project']) ?? 'All' }}
{{__('lang.block')}} :{{ block($search['block']) ?? 'All' }} {{__('lang.all')}}
{{__('lang.mode_of_payment')}}:{{ $search['mode_of_Payment'] }} {{__('lang.all')}}
{{__('lang.registration_no')}}: {{ $search['registeration'] ?? 'N/A' }}
@if($is_official) @endif @foreach ($data as $schedule) @if($is_official) @endif @endforeach
{{__('lang.registration_no')}} {{__('lang.unit')}} {{__('lang.customer')}} {{__('lang.contact_no')}} {{__('lang.booking_date')}} {{__('lang.last_payment_date')}} {{__('lang.total_dues')}}{{__('lang.unofficial_received')}} {{__('lang.official_received')}}{{__('lang.total_received')}} {{__('lang.total_cost')}} {{__('lang.booked_by')}}
{{$schedule->registration_no}} {{$schedule->product}} {{$schedule->customer}} {{$schedule->phone}} {{$schedule->sale_date}} {{$schedule->last_payment_date}} {{$transaction->convert_money_format($schedule->till_month_balance[$schedule->sell_id])}}{{$transaction->convert_money_format($schedule->Official_payment_receive)}} {{$transaction->convert_money_format($schedule->Un_official_payment_receive)}}{{$transaction->convert_money_format($schedule->Combine_payment_receive)}} {{$transaction->convert_money_format($schedule->cost)}} {{$schedule->created_by}}
@stop