@php $hideName = $hideName ?? false; $paidMonths = $invoice->items->map(fn ($item) => $item->billingPeriod?->label())->filter()->unique()->values(); $logo = company_logo_file(); @endphp @if($logo)
@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') }}