Dashboard {{ auth()->user()->hasRole('admin') ? 'Admin able to view products, sales, recycle activities and their chart on this page.' : 'You can view your purchase products and recycle activities on this page.' }}

{{ __('Dashboard') }}

@if(auth()->user()->hasRole('admin'))
Products {{ $totalProducts }}
@endif
Order {{ $totalOrder }}
@if(auth()->user()->hasRole('user'))
Rewards {{ $totalRewards }}
@endif
Recycle {{ $totalRecycleActivities }}
@if(auth()->user()->hasRole('admin'))

Product Sales Quantity (Unit)

Monthly Sales Amount (RM)

Product Stock Quantity

Total Recycle Activity

@if(!isset($chartRecycleActivities) || $chartRecycleActivities->isEmpty())

No recycle activity data available.

@else @endif
@else

Past Purchase Product

@if(!isset($chartPurchaseProducts) || $chartPurchaseProducts->isEmpty())

No purchase activity has been done.

You can purchase product by add to cart and checkout.

@else @endif

Recycle Activity

@if(!isset($chartRecycleActivities) || $chartRecycleActivities->isEmpty())

No recycle activity has been done.

You can start one at the Recycle Activity sidebar.

@else @endif
@endif