@include('customerP.includes.under-sidebar')
@foreach ($quotations as $quotation)
@if(strtolower($quotation->quote_type) == 'multi')
@endif
@foreach($quotation->rows as $index => $row)
@foreach($row->pickups as $pickupIndex => $pickup)
@endforeach
@foreach($row->deliveries as $deliveryIndex => $delivery)
@endforeach
@if($row->shipping)
@isset($row->shipping->shippingRows)
@foreach ($row->shipping->shippingRows as $i => $shippingRow)
@endforeach
@endisset
@endif
@foreach($row->warehouses as $warehouseIndex => $warehouse)
@endforeach
@if($row->additional)
@endif
@endforeach
@if($quotation->charges->count())
@endforeach
@canexport('print')
@endcanexport
@canexport('pdf')
@endcanexport
@canexport('excel')
@endcanexport
RFQ List
From @php $dateRange = request('date_range'); $startDate = 'Beginning'; $endDate = 'End'; if ($dateRange) { $dates = explode(' - ', $dateRange); if (count($dates) == 2) { try { $startDate = \Carbon\Carbon::createFromFormat('m/d/Y', trim($dates[0]))->format('M d, Y'); $endDate = \Carbon\Carbon::createFromFormat('m/d/Y', trim($dates[1]))->format('M d, Y'); } catch (\Exception $e) { // invalid format fallback } } } @endphp {{ $startDate }} to {{ $endDate }}Quotation Details #{{ $quotation->id }}
General Information
Company:
{{ $quotation->customer ? $quotation->customer->company_name : 'N/A' }}
Quote Type:
{{ strtolower($quotation->quote_type) == 'multi' ? 'Multi Truck' : ($quotation->quote_type ?? 'N/A') }}
Count of Trucks:
{{ $quotation->truck_count ?? 'N/A' }}
Employee Code:
{{ $quotation->employee_code ?? 'N/A' }}
Mode of Transport:
{{ $quotation->modeofT ? $quotation->modeofT->name : 'N/A' }}
Requested By:
{{ $quotation->requested_by ?? 'N/A' }}
Row {{ $index + 1 }}
Quantity of Trucks:
{{ $row->quantity ?? 'N/A' }}
Equipment Type:
{{ $row->equipmentRelation ? $row->equipmentRelation->name : 'N/A' }}
Pickup Locations {{ $pickupIndex + 1 }}
Name:
{{ $pickup->name ?? 'N/A' }}
Email:
{{ $pickup->q_email ?? 'N/A' }}
Phone:
{{ $pickup->q_phone ?? 'N/A' }}
Street:
{{ $pickup->street ?? 'N/A' }}
Country:
{{ $pickup->countryyyy ? $pickup->countryyyy->name : 'N/A' }}
State:
{{ $pickup->states ? $pickup->states->name : 'N/A' }}
City:
{{ $pickup->cities ? $pickup->cities->name : 'N/A' }}
Postal Code:
{{ $pickup->postal_code ?? 'N/A' }}
Pickup Note:
{{ $pickup->note ?? 'N/A' }}
Delivery Locations {{ $deliveryIndex + 1 }}
Name:
{{ $delivery->name ?? 'N/A' }}
Email:
{{ $delivery->q_email ?? 'N/A' }}
Phone:
{{ $delivery->q_phone ?? 'N/A' }}
Street:
{{ $delivery->street ?? 'N/A' }}
Country:
{{ $delivery->countryyyy ? $delivery->countryyyy->name : 'N/A' }}
State:
{{ $delivery->states ? $delivery->states->name : 'N/A' }}
City:
{{ $delivery->cities ? $delivery->cities->name : 'N/A' }}
Postal Code:
{{ $delivery->postal_code ?? 'N/A' }}
Delivery Note:
{{ $delivery->note ?? 'N/A' }}
Shipping Details
Commodity:
{{ $row->shipping->commodity ?? 'N/A' }}
Currency:
{{ $row->shipping->currency ?? 'N/A' }}
Base Price:
{{ $row->shipping->base_price ?? 'N/A' }}
Shipping {{ $i + 1 }}
Quantity:
{{ $shippingRow->quantity ?? 'N/A' }}
Units:
{{ $shippingRow->units ?? 'N/A' }}
Weight:
{{ $shippingRow->weight_value ?? 'N/A' }}
{{ $shippingRow->weight ?? '' }}
Dimension:
@if(!empty($shippingRow->dimension_value))
@php
$dims = explode('*', $shippingRow->dimension_value);
$labels = ['L', 'W', 'H']; // labels in order
$formatted = [];
foreach ($dims as $i => $val) {
if (!empty($val) && isset($labels[$i])) {
$formatted[] = $val . $labels[$i];
}
}
@endphp
{{ implode(' * ', $formatted) }}
@else
N/A
@endif
{{-- Show dimension field also --}}
{{ !empty($shippingRow->dimension) ? ' ('.$shippingRow->dimension.')' : '' }}
Warehouse Details {{ $warehouseIndex + 1 }}
Location:
{{ $warehouse->location->name ?? 'N/A' }}
Price:
{{ $warehouse->amount ?? 'N/A' }}
Additional Details
Tarped:
{{ $row->additional->tarped ? 'Yes' : 'No' }}
Team:
{{ $row->additional->team ? 'Yes' : 'No' }}
Hazmat:
@if($row->additional && $row->additional->hazmat)
Yes (Class: {{ $row->additional->class ?? 'N/A' }})
@else
No
@endif
Temperature:
@if($row->additional && $row->additional->temperature)
Yes
(Value: {{ $row->additional->temperature_value ?? 'N/A' }}
{{ $row->additional->temperature_unit ?? '' }})
@else
No
@endif
Non Stackable:
{{ $row->additional->non_stackable ? 'Yes' : 'No' }}
Bonded:
{{ $row->additional->bonded ? 'Yes' : 'No' }}
Trailer Drop:
{{ $row->additional->trailer_drop ? 'Yes' : 'No' }}
Tailgate Delivery:
{{ $row->additional->tailgate ? 'Yes' : 'No' }}
Residential Delivery:
{{ $row->additional->residential ? 'Yes' : 'No' }}
Charges
@foreach($quotation->charges as $charge)
@endforeach
@endif
@if($quotation->discounts->count())
{{ $charge->type ?? 'N/A' }}
{{ $charge->amount }} ({{ $charge->rate_type }})
Discounts
@foreach($quotation->discounts as $discount)
@endforeach
@endif
{{ $discount->types ? $discount->types->name : 'N/A' }}
{{ $discount->types ? $discount->types->Amount : 'N/A' }}
({{ $discount->types ? $discount->types->percentage : 'N/A' }})
Tax & Final Details
GST:
{{ $quotation->gst ? $quotation->gst . '%' : 'N/A' }}
PST:
{{ $quotation->pst ? $quotation->pst . '%' : 'N/A' }}
HST:
{{ $quotation->hst ? $quotation->hst . '%' : 'N/A' }}
QST:
{{ $quotation->qst ? $quotation->qst . '%' : 'N/A' }}
Final Price Before Tax:
{{ ($quotation->pbt ?? 0.00)}}
Final Price:
{{ $quotation->final_price ?? '0.00' }}
Notes:
{{ $quotation->notes ?? 'N/A' }}
Terms & Conditions:
{{ $quotation->term_conditions ? $quotation->term_conditions->name : 'N/A' }}
Special Note:
{{ $quotation->special_note ?? 'N/A' }}