@can('access_branches')
  • @foreach(\Modules\Branch\Entities\Branch::all() as $branch) {{ $branch->name }} @endforeach
  • @endcan @can('create_pos_sales')
  • POS System
  • @endcan @can('show_notifications')
  • @php $low_quantity_products = \Modules\Product\Entities\Product::select('id', 'product_code', 'product_stock_alert') ->withSum('batches', 'qty', 'batches_sum_qty') ->having('batches_sum_qty', '<=', DB::raw('product_stock_alert')) ->get(); echo $low_quantity_products->count(); @endphp
    {{ $low_quantity_products->count() }} Notifications
    @forelse($low_quantity_products as $product) Product: "{{ $product->product_code }}" is low in quantity! @empty No notifications available. @endforelse
  • @endcan
  • Profile Image
    {{ auth()->user()->name }} Online
    Account
    Profile Logout
    @csrf