From fcb88cef800a2ce5d19bf15ba13aa4096f862ed9 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 11 Feb 2026 14:25:28 +0530 Subject: [PATCH] Updated table alignment towards center and display quantity value as integer for individual or bundle material type --- .../views/livewire/invoice-data-table.blade.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/views/livewire/invoice-data-table.blade.php b/resources/views/livewire/invoice-data-table.blade.php index c68f9d6..d1c1db4 100644 --- a/resources/views/livewire/invoice-data-table.blade.php +++ b/resources/views/livewire/invoice-data-table.blade.php @@ -220,10 +220,10 @@ {{-- Modal for material invoice--}} @if($materialInvoice) + {{--
--}}
- {{-- --}} - {{--
--}} -
+ {{--
--}} +
@@ -242,7 +242,14 @@ - + {{-- --}} +
No{{ $index + 1 }} {{ $row['code'] ?? 'N/A' }} {{ $row['material_type'] ?? 'N/A' }}{{ $row['quantity'] ?? 'N/A' }}{{ $row['quantity'] ?? 'N/A' }} + @if(($row['material_type'] ?? '') === 'Individual' || ($row['material_type'] ?? '') === 'Bundle') + {{ number_format((float)($row['quantity'] ?? 0), 0) }} + @else + {{ $row['quantity'] ?? 'N/A' }} + @endif + {{ $row['serial_number'] ?? 'N/A' }} {{ $row['batch_number'] ?? 'N/A' }} {{ $row['created_at'] ?? 'N/A' }}