diff --git a/04_Laravel/app/Providers/AppServiceProvider.php b/04_Laravel/app/Providers/AppServiceProvider.php index 702248d..19f76f8 100644 --- a/04_Laravel/app/Providers/AppServiceProvider.php +++ b/04_Laravel/app/Providers/AppServiceProvider.php @@ -27,13 +27,6 @@ class AppServiceProvider extends ServiceProvider // هک برای رفع مشکل دیسک اکسل در لاراول ۱۱/۱۲ config(['excel.temporary_files.disk' => 'local']); - // ─── ثبت مسیر view برای صفحات Filament Resource ─── - // صفحاتی که در app/Filament/Resources/*/Pages هستند و view='filament.pages.xxx' - // دارند، blade خودشان را در app/Filament/Resources/views/ نگه می‌دارند. - // این خط به Laravel می‌گوید علاوه بر resources/views/filament/pages/، - // این مسیر را هم برای namespace 'filament.pages' جستجو کند. - view()->addNamespace('filament.pages', app_path('Filament/Resources/views')); - // ثبت Observer برای اطلاعیه‌های تغییر سفارش Shipment::observe(ShipmentObserver::class); diff --git a/04_Laravel/resources/views/filament/pages/rate-import.blade.php b/04_Laravel/resources/views/filament/pages/rate-import.blade.php new file mode 100644 index 0000000..b0f02a2 --- /dev/null +++ b/04_Laravel/resources/views/filament/pages/rate-import.blade.php @@ -0,0 +1,46 @@ + +
+
+

Rate Excel Import

+

+ Upload an Excel file matching the IFNEX Rate Template format. + The importer expects sheets named Import Rate, Export Rate, and optionally Zone. + Each rate sheet must contain two sections: DOCUMENT and NON-DOCUMENT. +

+ +
+ {{ $this->form }} + +
+ + Import Rates + +
+
+
+ +
+

📋 Quick checklist

+
    +
  • Sheet names must be exactly Import Rate and Export Rate.
  • +
  • Section markers must appear in column E (merged): DOCUMENT / NON - DOCUMENT.
  • +
  • Column headers must be Weight (kg) and Zone 1..Zone 10 (or just integers 1..10).
  • +
  • Weights must be decimal numbers in column A (0.5, 1, 1.5, ...).
  • +
  • Empty cells are skipped (no rate stored for that weight × zone).
  • +
  • Currency defaults to AED. System converts to IRR using current exchange rate.
  • +
+
+ +
+

دانلود قالب خالی

+

+ اگر قالب خالی را می‌خواهید، + دانلود IFNEX_Rate_Template.xlsx + (فرمت ۴-رُبعی: Import Rate، Export Rate، Zone). +

+

+ ⚠️ توجه: فایل اصلی مشتری (با داده‌های نرخ واقعی) را مستقیم آپلود کنید — این قالب فقط فرمت خالی است. +

+
+
+
\ No newline at end of file