diff --git a/resources/views/livewire/invoice-data-table.blade.php b/resources/views/livewire/invoice-data-table.blade.php index c68f9d6..ffb73e1 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,13 @@ - +
No{{ $index + 1 }} {{ $row['code'] ?? 'N/A' }} {{ $row['material_type'] ?? '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' }}