@extends('app.pdf.reports.partials.layout') @section('report-title', __('pdf_item_sales_label')) @section('footer-label', __('pdf_total_sales_label')) {{-- Block form rather than the inline @section($name, $value) one: the inline form escapes what it is given, and format_money_pdf() returns markup. --}} @section('footer-value'){!! format_money_pdf($totalAmount, $currency) !!}@endsection @section('report-body') {{-- One table for every item, not one table per item: separate tables size their columns independently, which is why the amounts used to wander. --}}
@forelse ($items as $item) @empty @endforelse
@lang('pdf_report_item_label') @lang('pdf_quantity_label') @lang('pdf_amount_label')
{{ $item->name }} {{ $item->total_quantity }} {!! format_money_pdf($item->total_amount, $currency) !!}
@lang('pdf_report_no_records')
@endsection