@extends('layouts.dashboard') @php $isStandard = $type === 'standard'; $isCreditDebit = in_array($type, ['credit_note', 'debit_note'], true); $typeTitle = match($type) { 'standard' => trans('dashboard.b2b_tax_invoice'), 'credit_note' => trans('dashboard.new_credit_note_btn'), 'debit_note' => trans('dashboard.new_debit_note_btn'), default => trans('dashboard.b2c_simplified_invoice'), }; $currency = trans('dashboard.currency_sar'); @endphp @section('title', $typeTitle . ' | ' . trans('site.app_name')) @push('styles') @if(! $isCreditDebit) @endif @endpush @section('header_title', $isCreditDebit ? $typeTitle : trans('dashboard.new_invoice_btn')) @section('content') @if($isCreditDebit) @include('dashboard.invoices.partials.credit-note-form') @else
@if($devices->isEmpty())
{{ trans('dashboard.device_required_first') }}
{{ trans('dashboard.onboarding') }} ←
@endif {{-- Sandbox / Test Mode Banner --}} @if(! $tenant->zatcaEnvironment()->isLive())
🧪

{{ trans('dashboard.sandbox_mode_title') }}

{{ trans('dashboard.sandbox_mode_desc') }}

@endif

{{ trans('dashboard.live_preview') }}

{{ trans('dashboard.final_document_look') }}
{{ $isStandard ? trans('dashboard.tax_invoice_title') : trans('dashboard.simplified_tax_invoice_title') }}
{{ $isStandard ? trans('dashboard.tax_invoice_en') : trans('dashboard.simplified_tax_invoice_en') }}
{{ $nextNumber }}
{{ trans('dashboard.th_issued_at') }}: {{ now()->format('Y/m/d') }}
{{ trans('dashboard.service_date_label') }} {{ now()->format('Y/m/d') }}
{{ trans('dashboard.seller_label') }} (SELLER)
{{ $tenant->name }}
{{ trans('dashboard.buyer_vat') }}: {{ $tenant->vat_number }}
{{ trans('dashboard.buyer_label') }} (BUYER)
{{ trans('dashboard.walk_in_customer') }}
-
{{ trans('dashboard.line_name') }} {{ trans('dashboard.qty_label') }} {{ trans('dashboard.line_price') }} {{ trans('dashboard.line_vat') }} {{ trans('dashboard.line_total_incl') }}
{{ trans('dashboard.th_subtotal') }} 0.00
{{ trans('dashboard.th_vat') }} (15%) 0.00
{{ trans('dashboard.total_due_label') }}
TOTAL DUE
0.00
{{ trans('dashboard.all_amounts_sar') }} () • {{ trans('dashboard.vat_inclusive') }}
@csrf @if($devices->count() > 1)
@else @endif @if($isCreditDebit)
@endif

{{ trans('dashboard.nav_customers') }}

{{ trans('dashboard.customer_initial') }}
{{ trans('dashboard.walk_in_customer') }}
{{ $isStandard ? trans('dashboard.b2b_requires_customer') : trans('dashboard.b2c_walk_in') }}

{{ trans('dashboard.line_items') }}

{{ trans('dashboard.tax_inclusive_hint') }}

{{ trans('dashboard.item_discount_hint') }}

{{ trans('dashboard.service_date_same') }} {{ now()->format('Y-m-d') }}
{{ trans('dashboard.zatca_instant_sign_notice') }}
@endif @endsection