{{-- The chrome shared by every report PDF: page skeleton, fonts, stylesheet, branded header with the date range, and the grand-total band at the foot. A report extends this and fills four sections. Three of them are single values and read best in the inline form: @extends('app.pdf.reports.partials.layout') @section('report-title', __('pdf_profit_loss_label')) @section('footer-label', __('pdf_net_profit_label')) @section('footer-value', format_money_pdf($net, $currency)) @section('report-body') ... @endsection Everything the header needs (company, from_date, to_date) is shared by the report controller, so no report passes it down by hand. --}} @yield('report-title') @include('app.pdf.partials.fonts') @include('app.pdf.reports.partials.styles')
@if (! empty($logo)) @else

{{ $company->name }}

@endif

{{ $from_date }} - {{ $to_date }}

@yield('report-title')

@yield('report-body')