logo logo
    @can('Sales products')
  • {{ __('home.sales') }}
  • {{ app()->getLocale() == 'ar' ? 'شاشة البيع السريع' : 'Quick sale (POS)' }}
  • @endcan @can('Purchases products')
  • {{ __('home.purchases') }}
  • @endcan @can('Daily record')
  • {{ app()->getLocale() == 'ar' ? 'المحاسبة والفواتير' : 'Accounting & invoices' }}
  • @endcan @can('Produects')
  • {{ app()->getLocale() == 'ar' ? 'المخزون' : 'Inventory' }}
  • @endcan @can('Add new product')
  • {{ app()->getLocale() == 'ar' ? 'منتج جديد' : 'New product' }}
  • @endcan
@php $startOfMonth = \Carbon\Carbon::now()->startOfMonth(); $endOfToday = \Carbon\Carbon::now()->endOfDay(); $totalUnsent = \App\Models\invoices::where('save', 1) ->where('sent_to_zatca', 0) ->where('status', 0) ->whereBetween('created_at', [$startOfMonth, $endOfToday]) ->count(); @endphp @php $lowStockCount = \App\Models\products::where('branchs_id', auth()->user()->branchs_id) ->whereColumn('numberofpice', '<=', 'minmum_quantity_stock_alart') ->count(); $notifTotal = $lowStockCount + $totalUnsent; $isArHdr = app()->getLocale() == 'ar'; @endphp
{{ optional(Auth::user()->branch)->name ?? '-' }} {{ \Carbon\Carbon::now()->format('h:i A') }}
@if ($notifTotal > 0) {{ $notifTotal > 9 ? '+9' : $notifTotal }} @endif
{{ $isArHdr ? 'الإشعارات' : 'Notifications' }}
{{ $isArHdr ? 'منتجات وصلت لحد الطلب' : 'Low-stock products' }} {{ $lowStockCount }} {{ $isArHdr ? 'فواتير لم تُرسل لهيئة الزكاة' : 'Invoices not sent to ZATCA' }} {{ $totalUnsent }}
{{ $isArHdr ? 'العربية' : 'English' }}
{{ __('home.select_language') }}
@foreach (LaravelLocalization::getSupportedLocales() as $localeCode => $properties) {{ $properties['native'] }} @if(LaravelLocalization::getCurrentLocale() == $localeCode) @endif @endforeach
@if($totalUnsent > 0) @else @endif {{ __('home.tax_integration') }} @if($totalUnsent > 0) {{ $totalUnsent > 99 ? '99+' : $totalUnsent }} @endif
{{ __('home.zatca_authority') }}
{{ __('home.live') }}
@if($totalUnsent > 0)

{{ __('home.pending_invoices_warning') }}

{{ __('home.you_have') }} {{ $totalUnsent }} {{ __('home.invoices_waiting_to_send') }}

{{ __('home.send_pending_invoices_now') }} @else

{{ __('home.integration_status_stable') }}

{{ __('home.all_invoices_sent_successfully') }}
@endif
user {{ Auth::user()->name }} {{ collect(Auth::user()->roles_name ?? [])->first() ?? optional(Auth::user()->branch)->name }}
user
{{ Auth::user()->name }}
{{ Auth::user()->email }}
{{ __('auth.setting') }}
{{ __('home.logout') }}
@csrf