@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])
@else
@include('print.partials.docket', ['type' => $section['type'], 'items' => $section['items']])
@endif
@unless ($loop->last)
— next page —
@endunless
@endforeach
@endsection