Implement a comprehensive overhaul of the Filament admin dashboard, introducing a structured 12-column responsive grid layout and enhanced visual identity. Key changes include: - Redesigned Dashboard layout with a 4-layer progressive disclosure architecture (KPIs, Exchange Rates, Data Tables, and Trends). - Introduced custom IFNEX design tokens via CSS, including branded stat cards, status badges, and improved sidebar typography. - Enhanced FinanceOverviewWidget with real-time trend analysis and sparkline-ready data structures. - Refactored RecentShipments and RecentTransactions widgets to use custom Blade templates for a more polished, consistent UI. - Integrated brand assets including the company logo and custom authentication pages. - Added global number formatting helpers and integrated them into financial widgets. - Updated AdminPanelProvider to support custom login pages and brand-specific header/footer hooks.
39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<?php
|
||
|
||
namespace App\Providers;
|
||
|
||
use Illuminate\Support\ServiceProvider;
|
||
use App\Models\Shipment;
|
||
use App\Observers\ShipmentObserver;
|
||
|
||
class AppServiceProvider extends ServiceProvider
|
||
{
|
||
/**
|
||
* Register any application services.
|
||
*/
|
||
public function register(): void
|
||
{
|
||
//
|
||
}
|
||
|
||
/**
|
||
* Bootstrap any application services.
|
||
*/
|
||
public function boot(): void
|
||
{
|
||
// هک برای رفع مشکل دیسک اکسل در لاراول ۱۱/۱۲
|
||
config(['excel.temporary_files.disk' => 'local']);
|
||
|
||
// ثبت Observer برای اطلاعیههای تغییر سفارش
|
||
Shipment::observe(ShipmentObserver::class);
|
||
|
||
// Explicitly require the IFNEX number helper file so
|
||
// ifnex_format_number() / ifnex_persian_digits() / ifnex_trend_percent()
|
||
// are available even before `composer dump-autoload` is re-run.
|
||
$helperPath = base_path('app/Helpers/number.php');
|
||
if (is_file($helperPath)) {
|
||
require_once $helperPath;
|
||
}
|
||
}
|
||
}
|