{{ config('settings.company_name') }}
{{ config('settings.address_1') }}
{{ $heading }}
@if ($search_by['from'] && $search_by['to']) From: {{ $transaction->date_format($search_by['from']) }} To: {{ $transaction->date_format($search_by['to']) }} @else {{ 'Upto ' . $transaction->date_format(now()) }} @endif
@foreach ($productBookings as $key => $productBooking) @php $product = $productBooking->product; $sale_fixed_amount = $product->fixed_amount; $actual_received = $productBooking->paymentRV; $general_receipt_item = $actual_received->general_receipt_items->first(); $client_name = $general_receipt_item->customer->name; $description = $general_receipt_item->particulars; $references = $actual_received->references->implode('reference',', '); $mode_of_payment = $actual_received->made_of_payment; if(!$sale_fixed_amount){ $sale_fixed_amount = $product->flat_size * $product->fixed_amount_rate_per_size; } $status = 'Active'; $badge_class = 'badge badge-warning'; if($productBooking->status == 'Refunded' && $productBooking->product_booking_refund->payment_status == 'Settled'){ $status = "Refunded"; $badge_class = 'badge badge-danger'; } else if($productBooking->status == 'Refunded' && $productBooking->product_booking_refund->payment_status != 'Settled'){ $status = "Cancelled"; $badge_class = 'badge badge-info'; } else if ($product->sell){ $status = 'Confirmed'; $badge_class = 'badge badge-success'; } $total_token_amount += $productBooking->amount; @endphp @endforeach
{{__('lang.token_number')}} {{__('lang.date')}} {{__('lang.client_name')}} / {{__('lang.dealer_name')}} {{__('lang.project_name')}} {{__('lang.unit_number')}} {{__('lang.type_category')}} {{__('lang.term')}} {{__('lang.description')}} {{__('lang.reference_no')}} {{__('lang.mode_of_payment')}} {{__('lang.token_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.total_cost')}} {{__('lang.token_by')}} {{__('lang.status')}}
{{$loop->iteration}} {{$transaction->date_format($productBooking->voucher_date)}} {{$client_name}} {{$product->branch->name}} {{$product->product_unique_id}} {{$product->layoutType->name ?? $product->category->name}} {{$productBooking->payment_type}} {{$description}} {{$references}} {{$mode_of_payment}} {{$transaction->convert_money_format($productBooking->amount)}} {{$transaction->convert_money_format($sale_fixed_amount)}} {{$productBooking->dealer->name}} {{$status}}
{{__('lang.total')}} {{$transaction->convert_money_format($total_token_amount)}}