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

Dealer Payments

@if($productOrders->isNotEmpty())
Print
@csrf
@endif
@if($productOrders->isEmpty() && request()->hasAny(['dealer_id','customer_id','transaction_type','payment_method','start_date','end_date']))
No matching data found for your search criteria.
@endif
{{__('Search')}}
Order Sale Payment Received Payment Date @php $totalAmount = 0; @endphp @foreach($productOrders as $productOrder) {{ $loop->iteration }}{{ $productOrder->dealerDetail->shop_name }}{{ $productOrder->dealerDetail->dealer_code }}{{ $productOrder->customerDetail->cust_nid_name_en }}{{ $productOrder->product->product_name }}{{ \Carbon\Carbon::parse($productOrder->product_order_created_at)->format('d-m-Y') }}{{ $productOrder->order_number }}{{ \Carbon\Carbon::parse($productOrder->delivery_date)->format('d-m-Y') }} {{ explode('.', $productOrder->bill_number)[3] ?? '-' }} {{ number_format($productOrder->cash_price, 2) }} {{ number_format($productOrder->down_payment, 2) }} {{ number_format($productOrder->security_money, 2) }} {{ number_format($productOrder->rest_amount, 2)}} {{ $productOrder->transaction_id ?? ' ' }}{{ $productOrder->transaction_date ? \Carbon\Carbon::parse($productOrder->transaction_date)->format('d-m-Y') : ' ' }} @if(!$productOrder->payment_exists) @endif @endforeach Total{{ number_format($productOrders->sum('cash_price'), 2) }}{{ number_format($productOrders->sum('down_payment'), 2) }}{{ number_format($productOrders->sum('security_money'), 2) }}{{ number_format($productOrders->sum('rest_amount'), 2) }}
@if(session('modal_error'))
{{ session('modal_error') }}
@endif

Add Payment Details

@csrf
@push('script-libs') @endpush @push('scripts') @endpush
{{--Back Up--}} {{--@php use App\Enums\DateTimeFormats; @endphp--}} {{----}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--

--}} {{-- Dealer Payments--}} {{--

--}} {{-- --}} {{-- @if($productOrders->isNotEmpty())--}} {{--
--}} {{-- --}} {{-- --}} {{-- Print--}} {{-- --}} {{-- --}} {{--
--}} {{-- @csrf--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- @endif--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- @if($productOrders->isEmpty() && request()->hasAny(['dealer_id','customer_id','transaction_type','payment_method','start_date','end_date']))--}} {{--
--}} {{-- No matching data found for your search criteria.--}} {{--
--}} {{-- @endif--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- {{__('Search')}}--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- Order--}} {{-- Sale--}} {{-- --}} {{-- Payment Received--}} {{-- --}} {{-- Payment Date--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php $totalAmount = 0; @endphp--}} {{-- @foreach($productOrders as $productOrder)--}} {{-- --}} {{-- {{ $loop->iteration }}--}} {{-- {{ $productOrder->dealerDetail->shop_name }}--}} {{-- {{ $productOrder->dealerDetail->dealer_code }}--}} {{-- {{ $productOrder->customerDetail->cust_nid_name_en }}--}} {{-- {{ $productOrder->product->product_name }}--}} {{-- {{ \Carbon\Carbon::parse($productOrder->product_order_created_at)->format('d-m-Y') }}--}} {{-- {{ $productOrder->order_number }}--}} {{-- {{ \Carbon\Carbon::parse($productOrder->delivery_date)->format('d-m-Y') }}--}} {{-- {{ explode('.', $productOrder->bill_number)[3] ?? '-' }}--}} {{-- --}} {{-- {{ number_format($productOrder->cash_price, 2) }}--}} {{-- --}} {{-- --}} {{-- {{ number_format($productOrder->down_payment, 2) }}--}} {{-- --}} {{-- --}} {{-- {{ number_format($productOrder->security_money, 2) }}--}} {{-- --}} {{-- --}} {{-- {{ number_format($productOrder->rest_amount, 2)}}--}} {{-- --}} {{-- {{ $productOrder->transaction_id ?? ' ' }}--}} {{-- {{ $productOrder->transaction_date ? \Carbon\Carbon::parse($productOrder->transaction_date)->format('d-m-Y') : ' ' }}--}} {{-- --}} {{-- @if(!$productOrder->payment_exists)--}} {{-- --}} {{-- @endif--}} {{-- --}} {{-- --}} {{-- @endforeach--}} {{-- --}} {{-- --}} {{-- --}} {{-- Total--}} {{-- {{ number_format($productOrders->sum('cash_price'), 2) }}--}} {{-- {{ number_format($productOrders->sum('down_payment'), 2) }}--}} {{-- {{ number_format($productOrders->sum('security_money'), 2) }}--}} {{-- {{ number_format($productOrders->sum('rest_amount'), 2) }}--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @if(session('modal_error'))--}} {{--
--}} {{-- {{ session('modal_error') }}--}} {{--
--}} {{-- @endif--}} {{--

Add Payment Details

--}} {{--
--}} {{-- @csrf --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{----}}