ifnex/04_Laravel/resources/views/filament/pages/bulk-tracking-import.blade.php
Kazem Alghasi 02c29db696 feat(core): implement order approval flow, credit system, and import invoicing
Introduce a comprehensive set of commercial features including a multi-step
order approval workflow, customer credit management, and specialized
import service invoicing.

Key changes:
- Implement `pending_approval` and `approved` shipment statuses to allow
  staff verification before customer payment.
- Add a credit system to `User` model with `credit_limit` and `credit_used`
  to manage customer balances and debts.
- Develop a new `importInvoice` PDF generation service following the
  "Sheet ENG Invoice" specification for import services.
- Add Filament resources for managing Audit Logs, Commitment Forms,
  Customer Credits, and Shipment Checklists.
- Implement staff-specific APIs for order approval/rejection and
  customer financial status monitoring.
- Integrate Kavenegar SMS service for mobile verification and notifications.
- Add bulk tracking import functionality via CSV/Excel.
- Update WordPress bridge assets (CSS/JS) to support the new multi-step
  order form UI and updated redirection logic.
- Update deployment configurations and documentation to reflect new
  production domains and feature sets.
2026-09-03 06:04:20 +03:30

45 lines
2.5 KiB
PHP

<x-filament-panels::page>
<form wire:submit="submit">
{{ $this->form }}
<div class="mt-6">
<x-filament::button type="submit" color="primary">
ایمپورت وضعیت ترکینگ
</x-filament::button>
</div>
</form>
<div class="mt-8">
<h3 class="text-lg font-semibold mb-4">راهنما</h3>
<div class="bg-gray-50 p-4 rounded-lg text-sm">
<p class="mb-2"><strong>فرمت فایل CSV:</strong></p>
<ul class="list-disc list-inside space-y-1 mb-4">
<li>خط اول: هدر (.awb_no,status,description)</li>
<li>هر سطر بعدی: یک سفارش</li>
<li><strong>awb_no:</strong> شماره سفارش (الزامی)</li>
<li><strong>status:</strong> وضعیت جدید (اختیاری - اگر خالی باشد از وضعیت پیش‌فرض استفاده می‌شود)</li>
<li><strong>description:</strong> توضیحات (اختیاری)</li>
</ul>
<p class="mb-2"><strong>وضعیت‌های مجاز:</strong></p>
<div class="grid grid-cols-2 md:grid-cols-3 gap-2">
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded text-xs">pending_approval</span>
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs">approved</span>
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded text-xs">pending_payment</span>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">paid</span>
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs">processed</span>
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs">picked_up</span>
<span class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-xs">in_transit</span>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">out_for_delivery</span>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">delivered</span>
<span class="bg-red-100 text-red-800 px-2 py-1 rounded text-xs">cancelled</span>
</div>
<p class="mt-4"><strong>نمونه فایل:</strong></p>
<pre class="bg-white p-2 rounded mt-1 text-xs">.awb_no,status,description
123456789,in_transit,ارسال شد از تهران
987654321,delivered,تحویل داده شد</pre>
</div>
</div>
</x-filament-panels::page>