diff --git a/app/Livewire/LocatorInvoiceDataTable.php b/app/Livewire/LocatorInvoiceDataTable.php
new file mode 100644
index 000000000..543de15d9
--- /dev/null
+++ b/app/Livewire/LocatorInvoiceDataTable.php
@@ -0,0 +1,56 @@
+ 'loadlocatorInvoiceData',
+ ];
+
+ public function loadlocatorInvoiceData($invoiceNumber, $plantId)
+ {
+ $this->plantId = $plantId;
+ $this->invoiceNumber = $invoiceNumber;
+
+ $this->records = LocatorInvoiceValidation::query()
+ ->where('plant_id', $plantId)
+ ->where('invoice_number', $invoiceNumber)
+ ->where(function ($query) {
+ $query->where('scanned_status', '=', '')
+ ->orWhereNull('scanned_status');
+ })
+ ->orderBy('created_at', 'asc')
+ // ->orderByDesc('created_at')
+ ->get()
+ ->map(function ($record) {
+ return [
+ 'created_at' => $record->created_at,
+ 'created_by' => $record->created_by ?? '',
+ 'serial_number' => $record->serial_number,
+ 'pallet_number' => $record->pallet_number,
+ 'locator_number' => $record->locator_number,
+ 'scanned_status' => $record->scanned_status,
+ 'scanned_at' => $record->scanned_at,
+ 'scanned_by' => $record->scanned_by ?? '',
+ ];
+ })
+ ->toArray();
+ }
+ public function render()
+ {
+ return view('livewire.locator-invoice-data-table');
+ }
+}
diff --git a/resources/views/filament/resources/pallet-validation-resource/pages/create-locator-invoice-validation.blade.php b/resources/views/filament/resources/pallet-validation-resource/pages/create-locator-invoice-validation.blade.php
new file mode 100644
index 000000000..a2eb89373
--- /dev/null
+++ b/resources/views/filament/resources/pallet-validation-resource/pages/create-locator-invoice-validation.blade.php
@@ -0,0 +1,84 @@
+{{-- The following serial numbers exist in both tables and will be removed from Pallet Validation if you proceed:hello
+
+ @foreach ($matchedSerialNumbersForRemoval as $serial)
+
+
| No | +Created Datetime | +Created By | +Serial Number | +Pallet Number | +Locator Number | +Scanned Status | +Scanned Datetime | +Scanned By | +
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | +{{ $record['created_at'] ?? '' }} | +{{ $record['created_by'] ?? '' }} | +{{ $record['serial_number'] ?? '' }} | +{{ $record['pallet_number'] ?? '' }} | +{{ $record['locator_number'] ?? '' }} | +{{ $record['scanned_status'] ?? '' }} | +{{ $record['scanned_at'] ?? '' }} | +{{ $record['scanned_by'] ?? '' }} | +
| + No records found. + | +||||||||