@extends('layouts.app') @section('content')

🛒 Sales Order Migration

What happens when you click "Start Order Migration"?

The order migration process will:

⚠️ Warning: This will modify your Magento 2 database. Make sure you have a backup before proceeding.

📋 Order Migration Logs

Detailed logs showing which orders were added, updated, or encountered errors during migration:

No order migration logs yet. Click "Start Order Migration" to begin.

📊 Order Statistics

{{ $m1Orders->count() }}
Magento 1 Orders
{{ $m2Orders->count() }}
Magento 2 Orders
{{ $m1OrdersNotInM2->count() }}
M1 Orders Not in M2
{{ $m2OrdersNotInM1->count() }}
M2 Orders Not in M1
@if($m1OrdersNotInM2->count() > 0)

⚠️ Magento 1 Orders Not in Magento 2

These orders exist in Magento 1 but are missing in Magento 2:

@foreach($m1OrdersNotInM2->take(50) as $order) @endforeach
ID Increment ID Customer Email Status Grand Total Created At
{{ $order->entity_id }} {{ $order->increment_id ?? 'N/A' }} {{ $order->customer_email ?? 'N/A' }} {{ $order->status ?? 'N/A' }} {{ $order->grand_total ?? 'N/A' }} {{ $order->created_at ?? 'N/A' }}
@if($m1OrdersNotInM2->count() > 50)

Showing first 50 of {{ $m1OrdersNotInM2->count() }} orders.

@endif
@endif @if($m2OrdersNotInM1->count() > 0)

⚠️ Magento 2 Orders Not in Magento 1

These orders exist in Magento 2 but are missing in Magento 1:

@foreach($m2OrdersNotInM1->take(50) as $order) @endforeach
ID Increment ID Customer Email Status Grand Total Created At Actions
{{ $order->entity_id }} {{ $order->increment_id ?? 'N/A' }} {{ $order->customer_email ?? 'N/A' }} {{ $order->status ?? 'N/A' }} {{ $order->grand_total ?? 'N/A' }} {{ $order->created_at ?? 'N/A' }}
@if($m2OrdersNotInM1->count() > 50)

Showing first 50 of {{ $m2OrdersNotInM1->count() }} orders.

@endif
@endif @endsection {{-- CSS is loaded globally via app.css --}} @push('scripts') @vite(['resources/js/orders.js']) @endpush