Added Upload serial locator pages and livewire
This commit is contained in:
59
resources/views/livewire/serial-locator-data-table.blade.php
Normal file
59
resources/views/livewire/serial-locator-data-table.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<div class="p-4">
|
||||
<h2 class="text-lg font-bold mb-4 text-gray-700 uppercase tracking-wider">
|
||||
SERIAL LOCATOR DATA TABLE:
|
||||
</h2>
|
||||
<div class="overflow-x-auto rounded-lg shadow">
|
||||
<table class="w-full divide-y divide-gray-200 text-sm text-center">
|
||||
<thead class="bg-gray-100 text-s font-semibold uppercase text-gray-700">
|
||||
<tr>
|
||||
<th class="border px-4 py-2">No</th>
|
||||
<th class="border px-4 py-2">Created Datetime</th>
|
||||
<th class="border px-4 py-2">Created By</th>
|
||||
<th class="border px-4 py-2">Pallet Number</th>
|
||||
<th class="border px-4 py-2">Serial Number</th>
|
||||
<th class="border px-4 py-2">Locator Number</th>
|
||||
<th class="border px-4 py-2">Locator Quantity</th>
|
||||
<th class="border px-4 py-2">Updated Datetime</th>
|
||||
<th class="border px-4 py-2">Updated By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-100">
|
||||
@forelse ($locators as $index => $locator)
|
||||
<tr class="hover:bg-gray-50">
|
||||
<td class="border px-4 py-2">{{ $index + 1 }}</td>
|
||||
<td class="border px-4 py-2 whitespace-nowrap">{{ $locator->created_at?->format('Y-m-d H:i:s') ?? '' }}</td>
|
||||
<td class="border px-4 py-2">{{ $locator->created_by ?? '' }}</td>
|
||||
<td class="border px-4 py-2">{{ $locator->pallet_number ?? '' }}</td>
|
||||
<td class="border px-4 py-2">{{ $locator->serial_number ?? '' }}</td>
|
||||
<td class="border px-4 py-2">{{ $locator->locator_number ?? '' }}</td>
|
||||
<td class="border px-4 py-2">{{ $locator->locator_quantity ?? '' }}</td>
|
||||
<td class="border px-4 py-2 whitespace-nowrap">{{ $locator->updated_at?->format('Y-m-d H:i:s') ?? '' }}</td>
|
||||
<td class="border px-4 py-2">{{ $locator->updated_by ?? '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="9" class="px-4 py-4 text-center text-gray-500">
|
||||
No records found.
|
||||
</td>
|
||||
</tr>
|
||||
@if ($hasSearched)
|
||||
<tr>
|
||||
<td colspan="9" class="px-4 py-4 text-center text-red-600 font-semibold">
|
||||
@if ($locatorNumber && $serialNumber)
|
||||
Serial Number "{{ $serialNumber }}" and Locator Number "{{ $locatorNumber }}" not found.
|
||||
@elseif ($locatorNumber)
|
||||
Locator Number "{{ $locatorNumber }}" not found.
|
||||
@elseif ($serialNumber)
|
||||
Serial Number "{{ $serialNumber }}" not found.
|
||||
@else
|
||||
No records found.
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user