@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
Same idea as old system: choose a customer and a date range, then generate a printable quotation.
Defaults to customer tier; can override.
Auto-filled based on customer language and date range; you can edit before creating.
Optional. Will be printed if you keep “Print notes” checked.
Creates a quotation that summarizes all posted invoices for the customer in the period. Quotation date will use the “To Date”.
@if(!empty($summaries) && $summaries->count())
@foreach($summaries 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; $viewA = route('quotations.print', $q) . '?ps_mode=summary'; $viewB = route('quotations.print', $q) . '?ps_mode=actual'; @endphp @endforeach
Bill No Date Customer Remark (preview) Total Discount Net User A - Actions B - Actions
{{ $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 ?? '—' }}
{{ $summaries->links() }}
@else
No period summary quotations yet.
@endif