@php use App\Enums\DateTimeFormats; use Carbon\Carbon; @endphp @push('styles') @endpush

{{ __('Customer Due & Outstanding Report') }}

@if($productOrders->isNotEmpty())
Print
@csrf
@endif
{{ __('Search') }}
SLShop NameShop CodeCustomer NameCustomer Mobile NumberGuarantor Mobile NumberProductOrderSaleProduct PricePayment ReceivedOutstandingDue Amount (TK)StatusActionDateNumberDateBill NumberNo of Inst.Inst. Amount (TK)Down PaymentSecurity MoneyEMI @foreach($productOrders as $productOrder) {{ $productOrders->firstItem() + $loop->index }} {{ $productOrder?->dealerDetail?->shop_name }} {{ $productOrder?->dealerDetail?->dealer_code }} {{ $productOrder?->customerDetail?->cust_nid_name_en }} {{ $productOrder?->customerDetail?->user?->mobile_number }} {{ $productOrder?->guarantor->pluck('guar_mobile_number')->implode(', ') }} {{ $productOrder?->product?->product_name }} {{ $productOrder?->created_at?->format(DateTimeFormats::CLIENT_DATE) }} {{ $productOrder?->order_number }} {{ $productOrder?->delivery_date ? Carbon::parse($productOrder?->delivery_date)?->format(DateTimeFormats::CLIENT_DATE) : null }} {{ isset(explode('.', $productOrder?->bill_number)[3]) ? explode('.', $productOrder?->bill_number)[3] : '' }} {{ $productOrder?->tenure_months }} {{ $productOrder?->installment_amount }} {{ $productOrder?->total_price }} {{ $productOrder?->down_payment }} {{ $productOrder?->security_money }} {{ $productOrder?->collected_emi_amount }} {{ $productOrder->outstanding_amount }} {{ $productOrder->due_amount }} {{$productOrder->due_days }} @endforeach Total {{$allProductOrders->sum('total_price')}} {{$allProductOrders->sum('down_payment')}} {{$allProductOrders->sum('security_money')}} {{$allProductOrders->sum('collected_emi_amount')}} {{$allProductOrders->sum('outstanding_amount')}} {{$allProductOrders->sum('due_amount')}}
{{ $productOrders->withQueryString()->links() }}
@push('scripts') @endpush
{{--BackUp Code--}} {{--@php--}} {{-- use App\Enums\DateTimeFormats;--}} {{-- use Carbon\Carbon;--}} {{--@endphp--}} {{----}} {{-- @push('styles')--}} {{-- --}} {{-- @endpush--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--

--}} {{-- {{__('Customer Due & Outstanding Report')}}--}} {{--

--}} {{-- @if($productOrders->isNotEmpty())--}} {{-- --}} {{-- Print--}} {{-- --}} {{-- @endif--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- All--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- All--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- {{__('Search')}}--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- SL--}} {{-- Shop Name--}} {{-- Shop Code--}} {{-- Customer Name--}} {{-- Customer Mobile Number--}} {{-- Product--}} {{-- Order--}} {{-- Sale--}} {{-- Product Price--}} {{-- Payment Received--}} {{-- Outstanding--}} {{-- Due Amount (TK)--}} {{-- Status--}} {{-- Action--}} {{-- --}} {{-- --}} {{-- Date--}} {{-- Number--}} {{-- Date--}} {{-- Bill Number--}} {{-- No of Inst.--}} {{-- Inst. Amount (TK)--}} {{-- Down Payment--}} {{-- Security Money--}} {{-- EMI--}} {{-- --}} {{-- --}} {{-- --}} {{-- @foreach($productOrders as $productOrder)--}} {{-- --}} {{-- {{ $productOrders->firstItem() + $loop->index }}--}} {{-- --}} {{-- {{ $productOrder?->dealerDetail?->shop_name }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->dealerDetail?->dealer_code }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->customerDetail?->cust_nid_name_en }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->customerDetail?->user?->mobile_number }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->product?->product_name }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->created_at?->format(DateTimeFormats::CLIENT_DATE) }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->order_number }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->delivery_date ? Carbon::parse($productOrder?->delivery_date)?->format(DateTimeFormats::CLIENT_DATE) : null }}--}} {{-- --}} {{-- --}} {{-- {{ explode('.', $productOrder?->bill_number)[3] }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->tenure_months }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->installment_amount }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->total_price }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->down_payment }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->security_money }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder?->collected_emi_amount }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder->outstanding_amount }}--}} {{-- --}} {{-- --}} {{-- {{ $productOrder->due_amount }}--}} {{-- --}} {{-- --}} {{-- {{$productOrder->due_days }}--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endforeach--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- Total--}} {{-- --}} {{-- {{$allProductOrders->sum('total_price')}}--}} {{-- --}} {{-- --}} {{-- {{$allProductOrders->sum('down_payment')}}--}} {{-- --}} {{-- --}} {{-- {{$allProductOrders->sum('security_money')}}--}} {{-- --}} {{-- --}} {{-- {{$allProductOrders->sum('collected_emi_amount')}}--}} {{-- --}} {{-- --}} {{-- {{$allProductOrders->sum('outstanding_amount')}}--}} {{-- --}} {{-- --}} {{-- {{$allProductOrders->sum('due_amount')}}--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- {{ $productOrders->withQueryString()->links() }}--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- @push('scripts')--}} {{-- --}} {{-- @endpush--}} {{--
--}}