@php /** * Self-contained invoices panel — embed inside any store dashboard's tab * content. Pass $panelSource = 'own' | 'woocommerce' | 'shopify'. * Computes its own data so no host controller change is needed. Sub-views * (list / detail / settings) switch on ?iv= WITHOUT leaving the dashboard — * links preserve the current URL via fullUrlWithQuery(). */ use App\Support\MoneyFormat; $panelSource = $panelSource ?? 'own'; $__ws = (int) (auth()->user()->current_workspace_id ?? 0); $__iv = request('iv'); $__url = fn ($iv) => request()->fullUrlWithQuery(['iv' => $iv]); @endphp @if ($__iv === 'settings') {{-- Settings — rendered IN the dashboard tab --}}
{{ __('A numbered PDF is generated per paid order and delivered on WhatsApp.') }}
| {{ __('Number') }} | {{ __('Customer') }} | {{ __('Type') }} | {{ __('Total') }} | {{ __('Delivery') }} | |
|---|---|---|---|---|---|
| {{ $inv->invoice_number }} | {{ $inv->buyer_name ?: '—' }} | {{ str_replace('_',' ',$inv->doc_type) }} | {{ $inv->total_display }} | {{ str_replace('_',' ',$inv->send_status) }} |