@php $hideName = $hideName ?? request()->boolean('hide_name'); $paidMonths = $invoice->items->map(fn ($item) => $item->billingPeriod?->label())->filter()->unique()->values(); @endphp @if(company_logo_url())

{{ setting('company_name') }}

@endif

{{ setting('company_name') }}

{{ $invoice->invoice_number }}

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

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

{{ $invoice->customer->name }}

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

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

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