@extends('admin.layouts.app') @section('main_content')

{{translate('Wellcome back')}}, {{auth_user()->name}}

{{translate('Last Cron Run')}} : @php $setting = App\Models\Setting::where("key", 'last_cron_run')->first(); @endphp {{$setting && $setting->value ? $setting->value : 'N/A'}}
@php $taskConfig = site_settings('task_config') ? json_decode(site_settings('task_config'),true) : []; @endphp @if(!in_array('mail_config',$taskConfig) || !in_array('ai_config',$taskConfig))

{{translate('Tasks to be done!')}}

@if(!in_array('mail_config',$taskConfig)) @endif @if(!in_array('ai_config',$taskConfig)) @endif
@endif

{{short_amount(Arr::get($data,'total_payment',0))}}

{{translate("Total Earnings")}}

{{translate('View All')}}

{{short_amount(Arr::get($data,'subscription_earning',0))}}

{{translate("Subscription Payment")}}

{{translate('View All')}}

{{short_amount(Arr::get($data,'order_payment',0))}}

{{translate("Order Payment")}}

{{translate('View All')}}

{{short_amount(Arr::get($data,'total_withdraw',0))}}

{{translate("Withdraw Amount")}}

{{translate('View All')}}

{{Arr::get($data,'physical_product',0)}}

{{translate("Inhouse Products")}}

{{translate('View All')}}

{{Arr::get($data,'digital_product',0)}}

{{translate("Digital Products")}}

{{translate('View All')}}

{{Arr::get($data,'total_customer',0)}}

{{translate("Total Customers")}}

{{translate('View All')}}

{{Arr::get($data,'total_seller',0)}}

{{translate("Total Sellers")}}

{{translate('View All')}}

{{Arr::get($data,'inhouse_order',0)}}

{{translate('Inhouse Orders')}}

{{translate('View All')}}

{{Arr::get($data,'delivered_order',0)}}

{{translate('Delivered Orders')}}

{{translate('View All')}}

{{Arr::get($data,'shipped_order',0)}}

{{translate('Shipped Orders')}}

{{translate('View All')}}

{{Arr::get($data,'cancel_order',0)}}

{{translate('Canceld Orders')}}

{{translate('View All')}}

{{translate('Monthly Order Insight')}}

@if(count($data['monthly_order_report']))
@else @include('admin.partials.not_found') @endif

{{translate("Latest Orders")}}

@forelse(Arr::get($data,'latest_orders') as $order) @empty @endforelse
{{translate( "Order ID" )}} {{translate('Qty')}} {{translate('Time')}} {{translate('Customer Info')}} {{translate('Amount')}} {{translate('Delivery')}} {{translate('Action')}}
{{$order->order_id}} {{$order->qty}}
{{diff_for_humans($order->created_at)}}
{{get_date_time($order->created_at)}}
@if($order->customer_id) {{@$order->customer->name ?? $order->customer->email}} @else {{@$order->billingAddress ? @$order->billingAddress->email : @$order->billing_information->email ?? 'N/A'}} @endif {{(short_amount($order->amount))}}
@php echo order_payment_status($order->payment_status) @endphp
@php echo order_status_badge($order->status) @endphp
@if(permission_check('view_order')) @endif
@include('admin.partials.not_found')

{{translate('Best Selling Products')}}

@forelse(Arr::get($data,'best_selling_product') as $inhouseProduct) @empty @endforelse
{{translate('Product')}} {{translate('Categories - Sold Item')}} {{translate('Info')}} {{translate('Top Item - Todays Deal')}} {{translate('Time - Status')}}
{{@$inhouseProduct->featured_image}}
{{limit_words($inhouseProduct->name,2)}}
{{(@get_translation($inhouseProduct->category->name))}}
{{translate('Total Sold')}} : {{$inhouseProduct->order->count()}}
{{translate('Regular Price')}} : {{(short_amount($inhouseProduct->price))}}
{{translate('Discount Price')}} : {{(short_amount($inhouseProduct->discount))}}
{{($inhouseProduct->top_status==1?'No':'Yes')}} {{($inhouseProduct->featured_status==1?'No':'Yes')}} {{get_date_time($inhouseProduct->created_at, 'd M Y')}}
@php echo product_status($inhouseProduct->status) @endphp
@include('admin.partials.not_found')

{{translate("Top Category")}}

    @forelse (Arr::get($data,'top_categories') as $category )
  • {{$category->banner}}

    {{@get_translation($category->name)}}

    {{diff_for_humans($category->created_at)}}

    {{$category->product_count}}

  • @empty
  • @include('admin.partials.not_found')
  • @endforelse

{{translate('Orders Insight')}}

{{Arr::get($data,'inhouse_order',0) + Arr::get($data,'digital_order',0) }}

{{translate("Total Orders")}}

{{Arr::get($data,'inhouse_order',0)}}

{{translate("Physical Orders")}}

{{Arr::get($data,'digital_order',0)}}

{{translate("Digital Orders")}}

{{translate("Product Insight")}}

{{Arr::get($data,'physical_product',0) + Arr::get($data,'digital_product',0) }}

{{translate("Total Product")}}

{{Arr::get($data,'physical_product',0)}}

{{translate("Inhouse Product")}}

{{Arr::get($data,'digital_product',0)}}

{{translate("Digital Product")}}

{{translate("Latest Transactions")}}

@forelse(Arr::get($data,'latest_transaction') as $transaction) @if($transaction->user_id) @elseif($transaction->seller_id) @else @endif @empty @endforelse
{{translate('Date')}} {{translate('Customer/Selller')}} {{translate('Transaction ID')}} {{translate('Amount')}}
{{diff_for_humans($transaction->created_at)}}
{{get_date_time($transaction->created_at)}}
{{@$transaction->user->name}}
{{(@$transaction->user->email)}}
{{@$transaction->seller? @$transaction->seller->name : 'N/A'}}
{{(@$transaction->seller->email)}}
{{ @$transaction->guest_user->email ?? 'Guest User'}} {{(@$transaction->transaction_number)}} {{$transaction->transaction_type == "+" ? '+' : '-'}} {{show_amount($transaction->amount,default_currency()->symbol) }}
@include('admin.partials.not_found')

{{translate('Earning Insight')}}

{{translate('Web Visitors Insight')}}

{{translate('View All')}}
@php $ordersArr = $data['order_by_year']; $productArr = $data['product_by_year']; $totalArray = array_column($ordersArr , 'total'); $digitalArray = array_column($ordersArr , 'digital'); $physicalArray = array_column($ordersArr , 'physical'); $totalProductArr = array_column($productArr , 'total'); $digitalProductArray = array_column($productArr , 'digital'); $physicalPorductArray = array_column($productArr , 'physical'); $productSell = array_values($data['product_sell_by_month']); $webVisitors = array_values($data['web_visitors']); @endphp @endsection @push('script-include') @endpush @push('script-push') @endpush