diff --git a/resources/views/pages/view-invoice.blade.php b/resources/views/pages/view-invoice.blade.php index 44ecee4..faf9a78 100644 --- a/resources/views/pages/view-invoice.blade.php +++ b/resources/views/pages/view-invoice.blade.php @@ -1,331 +1,350 @@ - - -
-
-
-
- {{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}} +
+ + +
+
+
+
+ {{setting('site_name')}}
-
-
-
-
- {{trans('filament-invoices::messages.invoices.view.bill_to')}}: +
+
+ {{trans('filament-invoices::messages.invoices.view.bill_from')}}:
- {{$this->getRecord()->billedFor?->name}} + {{$this->getRecord()->billedFrom->name}}
- {{$this->getRecord()->billedFor?->email}} + {{$this->getRecord()->billedFrom->phone}}
- {{$this->getRecord()->billedFor?->phone}} + {{$this->getRecord()->billedFrom->address}}
- @php - $address = $this->getRecord()->billedFor?->locations()->first(); - @endphp - @if($address) -
- {{$address->street}} +
+ {{$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}}
- {{$address->zip}}, {{$address->city->name}} + {{$this->getRecord()->billedFor?->email}}
- {{$this->getRecord()->billedFor?->locations()->first()?->country->name}} + {{$this->getRecord()->billedFor?->phone}}
- @endif + @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.invoice')}}

-
-
{{trans('filament-invoices::messages.invoices.view.status')}} :
-
{{type_of($this->getRecord()->status, 'invoices', 'status')->name}}
+
+ #{{$this->getRecord()->uuid}}
-
-
{{trans('filament-invoices::messages.invoices.view.type')}} :
-
{{type_of($this->getRecord()->type, 'invoices', 'type')->name}}
+
+
+
+
+
+
+
{{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')}} +
+
+
+
+
+ {{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 +
+ @foreach($this->getRecord()->invoicesitems as $key=>$item) +
+
+
+
+
+ {{ $item->item }}
- @endif + @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')}}: - +
+
+
+
+
+ {{trans('filament-invoices::messages.invoices.view.price')}}: + {{ number_format($item->price, 2) }}{{ $this->getRecord()->currency?->iso }} +
-
-
-
- {{trans('filament-invoices::messages.invoices.view.vat')}}: - +
+
+ {{trans('filament-invoices::messages.invoices.view.vat')}}: + {{ number_format($item->tax, 2) }}{{ $this->getRecord()->currency?->iso }} +
-
-
-
- {{trans('filament-invoices::messages.invoices.view.discount')}}: - +
+
+ {{trans('filament-invoices::messages.invoices.view.discount')}}: + {{ number_format($item->discount, 2) }}{{ $this->getRecord()->currency?->iso }} +
-
-
-
- {{trans('filament-invoices::messages.invoices.view.qty')}}: - +
+
+ {{trans('filament-invoices::messages.invoices.view.qty')}}: + {{ $item->qty }} +
-
-
-
- {{trans('filament-invoices::messages.invoices.view.total')}}: - +
+
+ {{trans('filament-invoices::messages.invoices.view.total')}}: + {{ number_format($item->total, 2) }}{{ $this->getRecord()->currency?->iso }} +
-
+
-
- @endforeach + @endforeach +
-
-
-
- @if($this->getRecord()->is_bank_transfer) +
+
+ @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.bank_account')}} + {{trans('filament-invoices::messages.invoices.view.signature')}}
-
-
- {{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 }} + {{ $this->getRecord()->billedFrom?->name }}
- {{trans('filament-invoices::messages.invoices.view.account')}} : {{ $this->getRecord()->bank_account }} + {{ $this->getRecord()->billedFrom?->email }}
- {{trans('filament-invoices::messages.invoices.view.owner')}} : {{ $this->getRecord()->bank_account_owner }} -
-
- {{trans('filament-invoices::messages.invoices.view.iban')}} : {{ $this->getRecord()->bank_iban }} + {{ $this->getRecord()->billedFrom?->phone }}
- @endif - -
-
- {{trans('filament-invoices::messages.invoices.view.signature')}} -
-
-
- {{ $this->getRecord()->billedFrom?->name }} +
+
+
+
+ {{trans('filament-invoices::messages.invoices.view.subtotal')}}
- {{ $this->getRecord()->billedFrom?->email }} + {{ 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')}}
- {{ $this->getRecord()->billedFrom?->phone }} + {{ number_format($this->getRecord()->vat, 2) }}{{ $this->getRecord()->currency?->iso }}
-
-
-
-
-
- {{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.discount')}} +
+
+ {{ number_format($this->getRecord()->discount, 2) }}{{ $this->getRecord()->currency?->iso }} +
-
-
-
- {{trans('filament-invoices::messages.invoices.view.paid')}} +
+
+ {{trans('filament-invoices::messages.invoices.view.paid')}} +
+
+ {{ number_format($this->getRecord()->paid, 2) }}{{ $this->getRecord()->currency?->iso }} +
-
- {{ 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 }} +
-
-
- {{trans('filament-invoices::messages.invoices.view.balance_due')}} +
+ + @if($this->getRecord()->notes) +
+
+
+ {{trans('filament-invoices::messages.invoices.view.notes')}}
-
- {{ number_format($this->getRecord()->total-$this->getRecord()->paid, 2) }}{{ $this->getRecord()->currency?->iso }} +
+ {!! $this->getRecord()->notes !!}
-
-
+ + @endif
- - @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
- -
- @php - $relationManagers = $this->getRelationManagers(); - $hasCombinedRelationManagerTabsWithContent = $this->hasCombinedRelationManagerTabsWithContent(); - @endphp - @if (count($relationManagers)) - - @if ($hasCombinedRelationManagerTabsWithContent) - - @if ($this->hasInfolist()) - {{ $this->infolist }} - @else - {{ $this->form }} - @endif - - @endif - - @endif -
+ + + - +