@extends('backend.layouts.app') @section('content') @if (env('MAIL_USERNAME') == null && env('MAIL_PASSWORD') == null) @endif @if (Auth::user()->user_type == 'admin' || in_array('1', json_decode(Auth::user()->staff->role->permissions)) || in_array('32', json_decode(Auth::user()->staff->role->permissions)))
{{ translate('Registered Members') }}
{{ \App\Shop::join('users as user', 'user.id', '=', 'organizations.user_id')->whereIn('user.user_type', ['seller', 'buyer'])->whereNull('user.deleted_at')->whereNull('organizations.deleted_at')->count() }}
{{ translate('Verified Members') }}
{{ \App\Shop::join('users as user', 'user.id', '=', 'organizations.user_id')->whereNotIn('user.user_type', ['admin', 'staff'])->whereNotNull('user.email_verified_at')->where(['user.phone_verified' => '1'])->whereNull('user.deleted_at')->whereNull('organizations.deleted_at')->count() }}
{{ translate('Total Blogs') }}
{{ $premium_users }}
Today's Active Members
{{ $active_user }}
{{ translate('Products Overview Status') }}
{{ translate('Seller Onboarding Status') }}
@endif
{{ $INHOUSE_COUNT ?? '0' }}
Inhouse Products
{{ $differenceInpercentage }}%Since last week
${{ number_format($subscribers_revnue_count) }}
Total Revenue
{{ $subscribers_revnue_differenceInpercentage }}%Since last week
{{ $enquiry_count }}
Total Enquiries
{{ $enquiry_differenceInpercentage }}%Since last week
{{ $subscribers_count }}
Total Subscriber
{{ $subscribers_differenceInpercentage }}%Since last week
@php $listCount = 1 ; @endphp @if (isset($products) and sizeof($products) > 0) @foreach ($products as $dataProducts) @php if ($dataProducts->published == 3) { $class = 'publish'; $approve_class = 'open-approveCate-modal'; } else { $class = 'secondary'; $approve_class = ''; } @endphp @php $listCount++ ; @endphp @endforeach @else @endif
S.No. Sender Name Product Name Receiver Name Enquiry Type Status

No Enquiries Added

You have not Manage any Enquiry yet. Click here to add enquiry

No RFQ Added

You have not added any RFQ yet. Click here to add RFQ

No Quotations Created

You have not created any Quotations yet. Click here to create quotation

No Invoice Received/Create

You have not received/create any invoice yet. Click here to create Invoice

No Recent Activity

Nothing to see yet. Your dashboard activities will be appear here!! Click here to view Activities

No Viewed Products

You have not seen any product. Click here to see viewed Products

No Viewed Seller

You have not seen any seller. Click here to see viewed Seller
{{ translate('Top 12 Products') }}
@php $key2 = 1; @endphp @foreach (\App\Product::where('published', 1)->orderBy('id', 'desc')->limit(12)->get() as $key => $product) @php $key2++; @endphp @endforeach
S.No. {{ translate('Name') }} {{ translate('Added By') }} {{ translate('Unique Number') }} {{ translate('Category') }} {{ translate('Options') }}
{{ $key2 }}
@php $imageCheck = explode(',', $product->photos); $imageCheck = min($imageCheck); @endphp {{ $product->getTranslation('name') }}
{{ $product->getTranslation('name') }}
{{ isset($product->user) ? $product->user->name : 'N/A' }} {{ $product->unique_number ?? 'N/A' }} {{ !empty($product->category) ? $product->category->name : 'N/A' }}
@if (Auth::user()->user_type == 'admin' || in_array('1', json_decode(Auth::user()->staff->role->permissions)) || in_array('32', json_decode(Auth::user()->staff->role->permissions)))
{{ translate('Sales Analytics') }}
{{--
Sort By Yearly
--}}

$2371

Income

258

Sales

3.6%

Conversation Ratio
{{ translate('Most Sales in Countries') }}
{{--

22,842 +43%

--}}

@if (!empty($total_subscriber)) ${{ number_format($subscribers_revnue_count) }} @else N/A @endif

Subscriber this Year
@forelse($most_sale as $val) @empty @endforelse
{{ $val['c_name'] }} @if (!empty($val['amount'])) $ @endif {{ number_format($val['amount'] ?? '') }}

No Data Available

@endif
@forelse ($subscriber as $skey => $svalue) {{-- @php $filtered = array_filter(json_decode($svalue->plan_feature_list,true), function($item) { return isset($item['permission']) && $item['value'] == 'yes'; }); $count = sizeof($filtered); @endphp --}} {{-- --}} @empty @endforelse
S.No. Subscriber Name Plan Name Features Status Account Type/Role Price Discount Price
{{ $skey + 1 }}{{ $svalue->user->name ?? 'N/A' }} {{ ucfirst($svalue->user->name ?? 'N/A') }}
@php if ( isset($svalue->plan_detail->plan->icon) and !empty($svalue->plan_detail->plan->icon) ) { $urssl = url('public/' . $svalue->plan_detail->plan->icon); } else { $urssl = url('public/assets/img/no-plan.svg'); } @endphp {{-- {{ $svalue->plan_detail->plan->name ?? 'N/A' }} --}}
{{ $svalue->totalActiveFeatures }} {{ ucfirst($svalue->status ?? 'N/A') }} {{ ucfirst($svalue->user->user_type ?? 'N/A') }} ${{ $svalue->plan_detail->sale_price ?? '0' }} ${{ $svalue->plan_detail->plan->discount_value ?? '0' }}

No Subscribers Yet.

{{-- Click here to see all Products --}}
{{-- Top Plans subscribed --}} @forelse ($top_plan as $pkey => $pvalue) @empty @endforelse {{-- --}} {{-- Close top subscriber plan --}}
{{ translate('Enquries') }}
@if (Auth::user()->user_type == 'admin') @endif @foreach ($enquiries as $key => $enquiry) @if (Auth::user()->user_type == 'admin') @endif @endforeach
S.No. {{ translate('Sender') }} {{ translate('Enquiry Type') }} {{ translate('Product') }} {{ translate('Receiver') }} {{ translate('Status') }} {{ translate('Option') }}
{{ $key + 1 + ($enquiries->currentPage() - 1) * $enquiries->perPage() }} {{ !empty($enquiry->enquiry_user->name) ? $enquiry->enquiry_user->name : 'N/A' }} @if ($enquiry->enquiry_type) {{ ucfirst($enquiry->enquiry_type) }} @endif {{ !empty($enquiry->product) ? $enquiry->product->getTranslation('name') : 'N/A' }} @if ($enquiry->seller_user_id == \Auth::user()->id) {{ translate('You') }} @else {{ !empty($enquiry->seller->name) ? $enquiry->seller->name : 'N/A' }} @endif {{ ucfirst($enquiry->status) }}
{{ translate('Searches') }}
@php $k = 1; @endphp @foreach ($searches as $list) @php $k++; @endphp @endforeach
S.No. {{ translate('User') }} {{ translate('Link') }} {{ translate('Guest ?') }} {{ translate('Viewer') }}
{{ $k }} {{ $list->user->name ?? 'N/A' }} {{ $list->slug ?? 'N/A' }} {{ $list->is_guest ?? 'N/A' }} {{ $list->view_count ?? 'N/A' }}
{{-- Product Detail --}}
{{-- Product Detail Close --}}
@endsection @section('script') {{-- --}} @endsection