@extends('layouts.app') @section('content') @if(env('MAIL_USERNAME') == null && env('MAIL_PASSWORD') == null)

{{translate('Please Configure SMTP Setting to work all email sending funtionality')}} .

Configure Now
@endif @if(Auth::user()->user_type == 'admin' || in_array('1', json_decode(Auth::user()->staff->role->permissions)))
{{translate('PRODUCTS')}}

{{translate('Total published products')}}: {{ $productStats->published_products }}{{-- \App\Product::where('published', 1)->get()->count() --}}

@if (\App\BusinessSetting::where('type', 'vendor_system_activation')->first()->value == 1)

{{translate('Total sellers products')}}: {{ $productStats->seller_products }} {{-- \App\Product::where('published', 1)->where('added_by', 'seller')->get()->count() --}}

@endif

{{translate('Total admin products')}}: {{ $productStats->admin_products }} {{-- \App\Product::where('added_by', 'admin')->get()->count() --}}


@if(Auth::user()->user_type == 'admin') {{ translate('Manage Products') }} @endif

{{translate('Total product category')}}

{{ $categoriesStats->total_categories }} {{-- \App\Category::all()->count() --}}

@if(Auth::user()->user_type == 'admin') {{translate('Create Category')}} @elseif(Auth::user()->id == "320") {{translate('View Category')}} @endif

{{translate('Total product sub sub category')}}

{{ $categoriesStats->total_sub_sub_categories_count }}{{-- \App\SubSubCategory::all()->count() --}}

@if(Auth::user()->user_type == 'admin') {{translate('Create Sub Sub Category')}} @elseif(Auth::user()->id == "320") {{translate('View Sub Sub Category')}} @endif

{{translate('Total product sub category')}}

{{ $categoriesStats->total_sub_categories_count }} {{-- \App\SubCategory::all()->count() --}}

@if(Auth::user()->user_type == 'admin') {{translate('Create Sub Category')}} @elseif(Auth::user()->id == "320") {{translate('View Sub Category')}} @endif

{{translate('Total product brand')}}

{{ \App\Brand::count() }}{{-- \App\Brand::all()->count() --}}

@if(Auth::user()->user_type == 'admin') {{translate('Create Brand')}} @elseif(Auth::user()->id == "320") {{translate('View Brand')}} @endif

{{translate('Gross Sale')}}

{{ single_price_new($orderStats->after_grand_total ) }} {{-- single_price_new($orderStats->after_grand_total + 9604153 ) --}} {{-- single_price_new($orderStats->grand_total + $orderStats->coupon_discount_total + $oldSale) --}} {{--single_price($totalSale + $oldSale + $totalcoupon)--}}

@if(Auth::user()->user_type == 'admin') {{translate('View Gross Sale')}} @elseif(Auth::user()->id == "320") {{translate('View Gross Sale')}} @endif

{{translate("Today's Gross Sale")}}

@php //$todaySale = \App\Order::where('date', '>', strtotime(\Carbon\Carbon::today()))->get()->sum('grand_total'); //$Todaytotalcoupon = \App\Order::where('date', '>', strtotime(\Carbon\Carbon::today()))->get()->sum('coupon_discount'); @endphp

{{ single_price_new($orderStats->grand_total_today) }} {{--single_price($todaySale + $Todaytotalcoupon)--}}

@if(Auth::user()->user_type == 'admin') {{translate("View Today's Gross Sale")}} @elseif(Auth::user()->id == "320") {{translate("View Today's Gross Sale")}} @endif
@endif @if((Auth::user()->user_type == 'admin' || in_array('5', json_decode(Auth::user()->staff->role->permissions))) && \App\BusinessSetting::where('type', 'vendor_system_activation')->first()->value == 1)
{{translate('SELLERS')}}

{{translate('Total sellers')}}

{{ $sellerStats->total_sellers }}{{-- \App\Seller::all()->count() --}}


{{translate('Manage Sellers')}}


{{translate('Total approved sellers')}}

{{ $sellerStats->approved_sellers }} {{-- \App\Seller::where('verification_status', 1)->get()->count() --}}


{{translate('Manage Sellers')}}


{{translate('Total pending sellers')}}

{{ $sellerStats->pending_sellers }} {{-- \App\Seller::where('verification_status', 0)->count() --}}


{{translate('Manage Sellers')}}

@endif @if(Auth::user()->user_type == 'admin' || in_array('1', json_decode(Auth::user()->staff->role->permissions)))

{{translate('Category wise product sale')}}

@foreach ($categoriesProductsStats as $key => $categoriesProductsStat) @endforeach
{{translate('Category Name')}} {{translate('Sale')}}
{{ __($categoriesProductsStat->name) }} {{ $categoriesProductsStat->total_sale }}
Total {{ $categoriesProductsStats->sum('total_sale') }}

{{translate('Category wise product stock')}}

@foreach ($categoriesProductsStats as $key => $categoriesProductsStat) @endforeach
{{translate('Category Name')}} {{translate('Stock')}}
{{ __($categoriesProductsStat->name) }} {{ $categoriesProductsStat->total_product_stocks }}
Total {{ $categoriesProductsStats->sum('total_product_stocks') }}
@endif @if(Auth::user()->user_type == 'admin' || in_array('9', json_decode(Auth::user()->staff->role->permissions)))

{{translate('Frontend')}} {{translate('Setting')}}







{{translate('Home page')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('Policy page')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('General')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('Useful link')}}
{{translate('setting')}}


{{translate('Click Here')}}
@endif @if(Auth::user()->user_type == 'admin' || in_array('8', json_decode(Auth::user()->staff->role->permissions)))

{{translate('Activation')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('SMTP')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('Payment method')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('Social media')}}
{{translate('setting')}}


{{translate('Click Here')}}






{{translate('Business')}}
{{translate('setting')}}



{{translate('Currency')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('Seller verification')}}
{{translate('form setting')}}


{{translate('Click Here')}}

{{translate('Language')}}
{{translate('setting')}}


{{translate('Click Here')}}

{{translate('Seller commission')}}
{{translate('setting')}}


{{translate('Click Here')}}
@endif @endsection