@extends('layouts.invoicetab') @section('invoice_content')
Faster Invoice Workspace

ZITS Proforma

A dedicated proforma invoicing workspace with all essential business features, designed for a faster, more streamlined experience.

Technologies Resources
Total Invoices
{{ number_format($summary['totalInvoices']) }}
Active Clients
{{ number_format($summary['totalClients']) }}
Draft Pending
{{ number_format($summary['draftInvoices']) }}
Invoice Value
Rs. {{ number_format($summary['totalAmount'], 2) }}
Approved Rs. {{ number_format($summary['approvedAmount'], 2) }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Client Invoice Groups

Open one client at a time, review all invoices, and use quick actions from the same screen.

@forelse($clientPage as $clientGroup) @php $clientId = $clientGroup->client_id; $clientInvoices = $groupedInvoices->get($clientId, collect()); @endphp @if($clientInvoices->isEmpty()) @continue @endif @php $clientName = $clientInvoices->first()->client->name ?? 'N/A'; $latestInvoice = $clientInvoices->first(); $clientTotal = $latestInvoice?->total_amount ?? 0; @endphp

After cloning, use Save Before Revised Record before making changes to the new record.
@foreach($clientInvoices as $index => $invoice) @endforeach
# Invoice No Date Total Status Actions
{{ $index + 1 }}
{{ $invoice->invoice_number }}
{{ \Carbon\Carbon::parse($invoice->date)->format('d-m-Y') }} Rs. {{ number_format($invoice->total_amount, 2) }} {{ ucfirst($invoice->status) }}
@if (!$invoice->revisions_count)
@csrf
@endif
@empty
{{ !empty($search) ? 'No ZITS Proforma invoices matched your search.' : 'No ZITS Proforma invoices found.' }}
@endforelse
@if(method_exists($clientPage, 'links'))
{{ $clientPage->links() }}
@endif
Create ZITS Proforma Invoice
A fresh screen built for the new workflow.
@include('zits_proforma_invoices._form', ['mode' => 'create'])
Edit ZITS Proforma Invoice
Only this invoice form loads when you open edit.
Loading invoice form...
@endsection