{{-- resources/views/Admin/Invoices/edit.blade.php --}} @include('Admin.Includes.header') @php use Illuminate\Support\Facades\Auth; use App\General\ProductClass; use App\General\UserClass; $logged_in_user = Auth::user(); // Use the same logic as in create file to fetch GST percentage $settings = \App\Models\GeneralSettings::where('option','_gst_percentage')->first(); $GST_PERCENTAGE = $settings ? (float) $settings->value : 0; $GST_PERCENTAGE = $GST_PERCENTAGE ?? 0; @endphp
@csrf
Update Invoice
#{{ $invoice->invoice_number }}

   
@if ($invoice->active == 0)
Add New Customer
@endif
customer_type == 'existing' || $invoice->customer_type == '') disabled @endif id="randomCustomerName">

   
@foreach ($invoice->invoiceMeta as $invoice_item)
@endforeach
Sub Total($):  
GST ({{ $GST_PERCENTAGE }}%):  
Grand Total ($):  

   

@if ($invoice->active == 0) @endif @if ($invoice->active == 1)
This Invoice is Public, you cannot make changes to the Invoice but you can print Invoice 😃, Create New Invoice
@endif
{{-- Render your invoice preview here --}} @php print($Invoice_review); @endphp
@include('Admin.Includes.footer') @include('Admin.Includes.footer')