@extends('adminlte::page') @section('title', __('adminlte.invoice')) @section('content_header')

{{ __('adminlte.invoice') }}

@stop @section('content') @php $subtotal = collect($invoice['items'])->sum(fn ($i) => $i['qty'] * $i['price']); $tax = $subtotal * 0.093; $total = $subtotal + $tax; @endphp {{-- Action bar (hidden on print) --}}
{{ __('adminlte.generate_pdf') }} {{ __('adminlte.submit_payment') }}
{{-- Header --}}

{{ config('adminlte.title', 'AdminLTE') }}

{!! nl2br(e($invoice['from'])) !!}

{{ __('adminlte.invoice') }}

#{{ $invoice['number'] }}

{{ __('adminlte.date') }}: {{ $invoice['date'] }}

{{-- Billing details --}}

{{ __('adminlte.from') }}

{!! nl2br(e($invoice['from'])) !!}

{{ __('adminlte.to') }}

{!! nl2br(e($invoice['to'])) !!}
{{-- Items --}}
@foreach ($invoice['items'] as $item) @endforeach
{{ __('adminlte.qty') }} {{ __('adminlte.description') }} {{ __('adminlte.price') }} {{ __('adminlte.subtotal') }}
{{ $item['qty'] }}

{{ $item['name'] }}

${{ number_format($item['price'], 2) }} ${{ number_format($item['qty'] * $item['price'], 2) }}
{{-- Totals --}}
{{ __('adminlte.subtotal') }}
${{ number_format($subtotal, 2) }}
{{ __('adminlte.tax') }} (9.3%)
${{ number_format($tax, 2) }}
{{ __('adminlte.total') }}
${{ number_format($total, 2) }}
{{-- Footer note --}}

{{ __('adminlte.invoice_footer_note') }}

@stop