@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
{{ trans('dashboard.sandbox_mode_title') }}
{{ trans('dashboard.sandbox_mode_desc') }}
| {{ trans('dashboard.line_name') }} | {{ trans('dashboard.qty_label') }} | {{ trans('dashboard.line_price') }} | {{ trans('dashboard.line_vat') }} | {{ trans('dashboard.line_total_incl') }} |
|---|