@extends('admin.layout.master') @section('content')
@if(auth()->user()->hasRole('super_admin') == 'true')
@else
@endif
@if(auth()->user()->hasRole('super_admin') == 'true')

{{\App\Models\Product::where('status','active')->count()}}

@else

{{\App\Models\Product::where('user_id' , auth()->user()->id)->where('status','active')->count()}}

@endif

@lang('admin.productsactive')

@if(auth()->user()->hasRole('super_admin') == 'true')
@else
@endif
@if(auth()->user()->hasRole('super_admin') == 'true')

{{\App\Models\Product::where('status','pending')->count()}}

@else

{{\App\Models\Product::where('user_id' , auth()->user()->id)->where('status','pending')->count()}}

@endif

@lang('admin.productspending')

@if(auth()->user()->hasRole('super_admin') == 'true')

{{\App\Models\Category::count()}}

@lang('admin.categories')

{{\App\Models\User::count()}}

@lang('admin.clients')

@endif
{{--
--}} {{--

اخر المنتجات المضافه

--}} {{--
--}} {{--
--}} {{-- @include('admin.products.products.data')--}} {{--
--}}
@endsection @push('js') {{--morris --}} @endpush