@php $hideName = $hideName ?? request()->boolean('hide_name'); $paidMonths = $invoice->items->map(fn ($item) => $item->billingPeriod?->label())->filter()->unique()->values(); @endphp
PDF @if($hideName) {{ __('messages.show_customer_name') }} @else {{ __('messages.hide_customer_name') }} @endif @if($invoice->line) {{ __('nav.billing') }} @endif
@if(session('success'))
{{ session('success') }}
@endif @if(company_logo_url()) {{ setting('company_name') }} @endif

{{ setting('company_name') }}

{{ setting('company_address') }} · {{ setting('company_phone') }}

{{ $invoice->invoice_number }} — {{ $invoice->date?->toDateString() }}

{{ __('messages.line') }}: {{ $invoice->line?->phone_number }}

@if(! $hideName && $invoice->customer?->name)

{{ __('messages.customer') }}: {{ $invoice->customer->name }}

@endif @if($paidMonths->isNotEmpty())

{{ __('messages.paid_months') }}: {{ $paidMonths->join('، ') }}

@endif @foreach($invoice->items as $item)@endforeach
{{ __('messages.items') }}{{ __('messages.price') }}{{ __('messages.total') }}
{{ $item->billingPeriod?->label() ?: $item->description }}{{ money($item->unit_price) }}{{ money($item->total) }}
{{ __('messages.total') }}{{ money($invoice->total) }}

{{ setting('invoice_footer') }}