@if($quotations->isEmpty())

No quotations yet.

@else
@foreach($quotations as $q) @php $total = (float) ($q->total ?? 0); $discount = (float) ($q->discount ?? 0); $net = max($total - $discount, 0); $customerName = $q->customer?->name ?? $q->customer_name; @endphp @endforeach
Actions Bill No Date Customer Remark (preview) Total Discount Net User
{{ $q->bill_no }} {{ optional($q->quotation_date)->format('Y-m-d') }} {{ $customerName ?: '—' }} @if(!empty($q->customer_mobile)) ({{ $q->customer_mobile }}) @endif @if(!empty($q->remark)) {{ \Illuminate\Support\Str::limit($q->remark, 60) }} @else — @endif {{ number_format($total, 2) }} {{ number_format($discount, 2) }} {{ number_format($net, 2) }} {{ $q->user->name ?? '—' }}
{{ $quotations->links() }}
@endif