@forelse($quotations as $index => $quotation) {{-- Actions --}}
{{-- Header --}}
Quotation Details ({{ $quotation->code ?? 'N/A' }})
{{-- Customer Info --}}
Customer Information
Name : {{$quotation->name}}
Mobile : {{$quotation->mobile_no}}
Location : {{$quotation->location}}
Project : {{$quotation->project_type ?? '-'}}
{{-- Divider --}}
{{-- Product List --}}
Quotation Products
@foreach($quotation->rows as $row)
{{-- Product Left --}}
{{ \Illuminate\Support\Str::words($row->product->name ?? '-',4,'...') }}
@if($row->product && !empty($row->product->coverage_area))
Coverage Area: {{ $row->product->coverage_area }}
@endif
Qty : {{$row->qty}}
Discount : {{$row->discount ?? 0}}%
GST : {{$row->tax}}%
Status : @if(($row->retainable ?? 'retainable') == 'retainable') Retainable @else Not Retainable @endif
{{-- Product Right --}}
Price
₹{{number_format($row->price,2)}}
Amount
₹{{number_format($row->amount,2)}}
@endforeach
{{-- Divider --}}
{{-- Grand Total --}}
Grand Total
₹{{number_format($quotation->grand_total,2)}}
{{-- Quotation History Timeline --}} @if($quotation->histories && $quotation->histories->count())
Quotation History Log
@foreach($quotation->histories as $history)
{{ $history->action }} {{ $history->created_at->format('d-M-Y h:i A') }}
@php $changeData = json_decode($history->changes, true); @endphp {{ $changeData['message'] ?? '-' }}
By: {{ $history->user->name ?? 'System' }}
@endforeach
@endif
{{-- OFFCANVAS: DELETE --}}
@csrf @method('DELETE')

Delete Quotation

Are you sure you want to delete #{{ $quotation->name }}?

@empty @endforelse
Sr No Quotation Code Customer name mobile No. Location Total Amount Date Action
{{ $index + 1 }} {{ $quotation->code ?? 'N/A' }} {{$quotation->name}} {{$quotation->mobile_no}} {{$quotation->location}} {{$quotation->grand_total}} {{ $quotation->created_at->format('d-m-Y') }} {{-- Edit --}} {{-- Download --}}
No Quotation found
{{-- Pagination --}}
{{ $quotations->links('pagination::bootstrap-5') }}