{{setting('site_name')}}
{{trans('filament-invoices::messages.invoices.view.bill_from')}}:
{{$this->getRecord()->billedFrom->name}}
{{$this->getRecord()->billedFrom->phone}}
{{$this->getRecord()->billedFrom->address}}
{{$this->getRecord()->billedFrom->zip}} {{$this->getRecord()->billedFrom->city}}
{{$this->getRecord()->billedFrom->country?->name}}
{{trans('filament-invoices::messages.invoices.view.bill_to')}}:
{{$this->getRecord()->billedFor?->name}}
{{$this->getRecord()->billedFor?->email}}
{{$this->getRecord()->billedFor?->phone}}
@php $address = $this->getRecord()->billedFor?->locations()->first(); @endphp @if($address)
{{$address->street}}
{{$address->zip}}, {{$address->city->name}}
{{$this->getRecord()->billedFor?->locations()->first()?->country->name}}
@endif

{{trans('filament-invoices::messages.invoices.view.invoice')}}

#{{$this->getRecord()->uuid}}
{{trans('filament-invoices::messages.invoices.view.issue_date')}} :
{{$this->getRecord()->created_at->toDateString()}}
{{trans('filament-invoices::messages.invoices.view.due_date')}} :
{{$this->getRecord()->due_date->toDateString()}}
{{trans('filament-invoices::messages.invoices.view.status')}} :
{{type_of($this->getRecord()->status, 'invoices', 'status')->name}}
{{trans('filament-invoices::messages.invoices.view.type')}} :
{{type_of($this->getRecord()->type, 'invoices', 'type')->name}}
{{trans('filament-invoices::messages.invoices.view.item')}}
{{trans('filament-invoices::messages.invoices.view.total')}}
@foreach($this->getRecord()->invoicesitems as $key=>$item)
{{ $item->item }}
@if($item->description)
{{ $item->description }}
@endif @if($item->options)
@foreach($item->options ?? [] as $label=>$options) {{ str($label)->ucfirst() }} : {{$options}}
@endforeach
@endif
{{trans('filament-invoices::messages.invoices.view.price')}}: {{ number_format($item->price, 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.vat')}}: {{ number_format($item->tax, 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.discount')}}: {{ number_format($item->discount, 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.qty')}}: {{ $item->qty }}
{{trans('filament-invoices::messages.invoices.view.total')}}: {{ number_format($item->total, 2) }}{{ $this->getRecord()->currency?->iso }}
@endforeach
@if($this->getRecord()->is_bank_transfer)
{{trans('filament-invoices::messages.invoices.view.bank_account')}}
{{trans('filament-invoices::messages.invoices.view.name')}} : {{ $this->getRecord()->bank_name }}
{{trans('filament-invoices::messages.invoices.view.address')}} : {{ $this->getRecord()->bank_address }}, {{ $this->getRecord()->bank_city }}, {{ $this->getRecord()->bank_country}}
{{trans('filament-invoices::messages.invoices.view.branch')}} : {{ $this->getRecord()->bank_branch }}
{{trans('filament-invoices::messages.invoices.view.swift')}} : {{ $this->getRecord()->bank_swift }}
{{trans('filament-invoices::messages.invoices.view.account')}} : {{ $this->getRecord()->bank_account }}
{{trans('filament-invoices::messages.invoices.view.owner')}} : {{ $this->getRecord()->bank_account_owner }}
{{trans('filament-invoices::messages.invoices.view.iban')}} : {{ $this->getRecord()->bank_iban }}
@endif
{{trans('filament-invoices::messages.invoices.view.signature')}}
{{ $this->getRecord()->billedFrom?->name }}
{{ $this->getRecord()->billedFrom?->email }}
{{ $this->getRecord()->billedFrom?->phone }}
{{trans('filament-invoices::messages.invoices.view.subtotal')}}
{{ number_format(($this->getRecord()->total + $this->getRecord()->discount) - ($this->getRecord()->vat + $this->getRecord()->shipping), 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.tax')}}
{{ number_format($this->getRecord()->vat, 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.discount')}}
{{ number_format($this->getRecord()->discount, 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.paid')}}
{{ number_format($this->getRecord()->paid, 2) }}{{ $this->getRecord()->currency?->iso }}
{{trans('filament-invoices::messages.invoices.view.balance_due')}}
{{ number_format($this->getRecord()->total-$this->getRecord()->paid, 2) }}{{ $this->getRecord()->currency?->iso }}
@if($this->getRecord()->notes)
{{trans('filament-invoices::messages.invoices.view.notes')}}
{!! $this->getRecord()->notes !!}
@endif
@php $relationManagers = $this->getRelationManagers(); $hasCombinedRelationManagerTabsWithContent = $this->hasCombinedRelationManagerTabsWithContent(); @endphp @if (count($relationManagers)) @if ($hasCombinedRelationManagerTabsWithContent) @if ($this->hasInfolist()) {{ $this->infolist }} @else {{ $this->form }} @endif @endif @endif