@php $canCreateQuotation = \App\Support\AdminAccess::canAction('quotations', 'create'); $canViewQuotation = \App\Support\AdminAccess::canAction('quotations', 'view'); @endphp
{{ __('Quotation Management') }}
@if($canCreateQuotation) {{ __('New Quotation') }} @endif
@forelse($quotations as $quotation) @empty @endforelse
{{ __('Quotation #') }} {{ __('Customer') }} {{ __('Date') }} {{ __('Total Amount') }} {{ __('Actions') }}
#{{ $quotation->quotation_number }} {{ $quotation->customer->display_name ?? __('Walk-in Customer') }} {{ $quotation->created_at->format('d M, Y') }} Rs. {{ number_format($quotation->total, 0) }}
@if($canViewQuotation) @endif

{{ __('No quotations found.') }}

@if($showViewModal && $selectedQuotation)
{{ __('Quotation Number') }}
#{{ $selectedQuotation->quotation_number }}
{{ __('Date:') }} {{ $selectedQuotation->created_at->format('d M, Y') }}
{{ __('Customer') }}
{{ $selectedQuotation->customer->display_name ?? __('Walk-in Customer') }}
{{ $selectedQuotation->customer->phone ?? __('Phone not available') }}
@forelse($selectedQuotation->items as $item) @empty @endforelse
{{ __('Product') }} {{ __('Qty') }} {{ __('Price') }} {{ __('Total') }}
{{ $item->product_name }} {{ number_format($item->qty, 2) }} Rs. {{ number_format($item->price, 2) }} Rs. {{ number_format($item->total, 2) }}
{{ __('No quotation items found.') }}
{{ __('Sub Total') }} Rs. {{ number_format($selectedQuotation->subtotal, 2) }}
{{ __('Discount') }} Rs. {{ number_format($selectedQuotation->discount, 2) }}
{{ __('Grand Total') }} Rs. {{ number_format($selectedQuotation->total, 2) }}
@endif