@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content')
{{__('lang.sno')}} | {{__('lang.registration_no')}} | {{__('lang.unit_no')}} | {{__('lang.dealer')}} | {{__('lang.customer')}} | {{__('lang.status')}} | {{__('lang.sale_date')}} | {{__('lang.sale_amount')}} | {{__('lang.received')}} | {{__('lang.balance')}} | {{__('lang.received_percentage')}} | {{__('lang.last_payment_date')}} | {{__('lang.last_paid_amount')}} | @foreach ($months as $month){{ date('M-Y', strtotime($month)) }} | @endforeach{{__('lang.till_month_due')}} |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $sell->registration_no }} | {{ $sell->product->product_unique_id }} | {!! $sell->dealers->implode('DealerName.name', ', ') !!} |
{{ $sell->customer->name }} | {{ $sell->status }} | {{ $transaction->date_format($sell->sale_date_v2) }} | {{ $transaction->convert_money_format($sale_amount) }} | {{ $transaction->convert_money_format($received_amount) }} | {{ $transaction->convert_money_format($balance_amount) }} | {{ round( $received_amt_per, 2 ) }} | {{ $transaction->date_format($last_payment_date) ?? '-' }} | {{ $transaction->convert_money_format($last_payment_amount) }} | @foreach ($months as $month) @php $schedule_receivable_month = $sell->getScheduleReceivableByMonth($month); $month_payable = $schedule_receivable_month->sum('payable_amount') + $schedule_receivable_month->sum('unofficial_payable_amount'); $total_month_amount[$loop->iteration] += $month_payable; @endphp{{ $transaction->convert_money_format($month_payable) }} | @endforeach{{ $transaction->convert_money_format($till_month_due_amount) }} |
{{__('lang.total')}} | {{ $transaction->convert_money_format($total_sale_amount) }} | {{ $transaction->convert_money_format($total_balance_amount) }} | {{ $transaction->convert_money_format($total_received_amount) }} | {{ $transaction->convert_money_format($total_last_paid_amount) }} | @foreach ($total_month_amount as $amount){{ $transaction->convert_money_format($amount) }} | @endforeach{{ $transaction->convert_money_format($total_due_amount) }} |