@php($paperWidth = 80) @extends('print.layout') @section('title', 'Print - ' . $order->order_number) @section('content') @foreach ($sections as $section)
last) style="page-break-after: always; break-after: page; margin-bottom: 18px;" @endif> @if ($section['type'] === 'bill') @include('print.partials.receipt-body', ['order' => $section['order'], 'split' => null, 'documentType' => $section['documentType'] ?? 'bill']) @else @include('print.partials.docket', ['type' => $section['type'], 'items' => $section['items']]) @endif
@unless ($loop->last)
— next page —
@endunless @endforeach @endsection {{-- The print response opens in a new tab. Redirect the original POS tab to login after the server has invalidated the waiter session. --}}