From d9ba1d4330ff99abe80eaf2ff6f2db517aa1e646 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 19 Apr 2025 11:21:14 +0530 Subject: [PATCH] Added completed and empty invoice html table design --- .../livewire/invoice-data-table.blade.php | 243 ++++++++---------- 1 file changed, 111 insertions(+), 132 deletions(-) diff --git a/resources/views/livewire/invoice-data-table.blade.php b/resources/views/livewire/invoice-data-table.blade.php index c00730a3b..88e64a30a 100644 --- a/resources/views/livewire/invoice-data-table.blade.php +++ b/resources/views/livewire/invoice-data-table.blade.php @@ -1,123 +1,3 @@ -{{--
-
-

INVOICE DATA TABLE

-
-
-
-
- -
- - - - - - - - - - - - - - - - - @forelse ($invoiceData as $index => $row) - - - - - - - - - - - - - - @empty - - - - @endforelse - -
NoMaterial CodeSerial NumberMotor Scanned StatusPump Scanned StatusCapacitor Scanned StatusScanned Status SetPanel Box SupplierPanel Box Serial NumberScanned Status
{{ $index + 1 }}{{ $row['code'] ?? 'N/A' }}{{ $row['serial_number'] ?? 'N/A' }}{{ $row['motor_scanned_status'] ?? 'N/A' }}{{ $row['pump_scanned_status'] ?? 'N/A' }}{{ $row['capacitor_scanned_status'] ?? 'N/A' }}{{ $row['scanned_status_set'] ?? 'N/A' }}{{ $row['panel_box_supplier'] ?? 'N/A' }}{{ $row['panel_box_serial_number'] ?? 'N/A' }}{{ $row['scanned_status'] ?? 'N/A' }}
No data available.
-
-
- - --}} - - - -{{-- this is code for input box inisde the data grid --}} - - -{{--
-
-

INVOICE DATA TABLE

-
-
-
-
- - - - @if($hasSearched) -
- - - - - - - - - - - - - - - - - @forelse ($invoiceData as $index => $row) - - - - - - - - - - - - - @empty - - - - @endforelse - -
NoMaterial CodeSerial NumberMotor Scanned StatusPump Scanned StatusCapacitor Scanned StatusScanned Status SetPanel Box SupplierPanel Box Serial NumberScanned Status
{{ $index + 1 }}{{ $row['code'] ?? 'N/A' }}{{ $row['serial_number'] ?? 'N/A' }}{{ $row['motor_scanned_status'] ?? 'N/A' }}{{ $row['pump_scanned_status'] ?? 'N/A' }}{{ $row['capacitor_scanned_status'] ?? 'N/A' }}{{ $row['scanned_status_set'] ?? 'N/A' }}{{ $row['panel_box_supplier'] ?? 'N/A' }}{{ $row['panel_box_serial_number'] ?? 'N/A' }}{{ $row['scanned_status'] ?? 'N/A' }}
- No data found for invoice number {{ $invoiceNumber }}. -
-
- @endif -
--}} -
@@ -127,9 +7,23 @@
- @if($hasSearched) + {{-- Modal for completed invoice--}} + @if ($completedInvoice) +
+

Completed the scanning process for invoice number {{ $invoiceNumber }}.

+
+ @endif -
+ {{-- Modal for empty invoice--}} + @if ($emptyInvoice) +
+

No data found for invoice number {{ $invoiceNumber }}.

+
+ @endif + + {{-- Modal for serial invoice--}} + @if ($hasSearched) +
{{-- --}} {{--
--}}
@@ -155,15 +49,95 @@ - - - - - + + + + + + + + + + + @empty + + + + @endforelse + +
{{ $index + 1 }} {{ $row['code'] ?? 'N/A' }} {{ $row['serial_number'] ?? 'N/A' }}{{ $row['motor_scanned_status'] ?? 'N/A' }}{{ $row['pump_scanned_status'] ?? 'N/A' }}{{ $row['capacitor_scanned_status'] ?? 'N/A' }}{{ $row['scanned_status_set'] ?? 'N/A' }}{{ $row['scanned_status'] ?? 'N/A' }}{{ $row['motor_scanned_status'] ?? '' }}{{ $row['pump_scanned_status'] ?? '' }}{{ $row['capacitor_scanned_status'] ?? '' }}{{ $row['scanned_status_set'] ?? '' }}{{ $row['scanned_status'] ?? '' }}{{ $row['created_at'] ?? '' }}{{ $row['operator_id'] ?? '' }}{{ $row['panel_box_supplier'] ?? '' }}{{ $row['panel_box_serial_number'] ?? '' }}
+ No data found for invoice number {{ $invoiceNumber }}. +
+
+ @endif + + {{-- Modal for Capacitor Input --}} +
+ + @if($showCapacitorInput) +
+
+

+ Scan the Panel Box Supplier/Item Code/Serial Number +

+ + + +
+ +
+
+
+ {{-- Add this script to focus on the input --}} + + @endif +
+ + {{-- Modal for material invoice--}} + @if($materialInvoice) +
+ {{-- --}} + {{--
--}} +
+ + + + + + + + + + + + + + @forelse ($invoiceData as $index => $row) + + + + + + + - - @empty @@ -177,6 +151,11 @@ @endif - - - +{{-- --}}
NoMaterial CodeMaterial TypeMaterial QuantitySerial NumberBatch NumberTimeStampOperator ID
{{ $index + 1 }}{{ $row['code'] ?? 'N/A' }}{{ $row['material_type'] ?? 'N/A' }}{{ $row['quantity'] ?? 'N/A' }}{{ $row['serial_number'] ?? 'N/A' }}{{ $row['batch_number'] ?? 'N/A' }} {{ $row['created_at'] ?? 'N/A' }} {{ $row['operator_id'] ?? 'N/A' }}{{ $row['panel_box_supplier'] ?? 'N/A' }}{{ $row['panel_box_serial_number'] ?? 'N/A' }}