@extends('backEnd.master') @section('styles') @endsection @section('mainContent')

{{ __('common.summary') }}

    @if (getParentSeller()->slug)
  • {{ __('dashboard.shop_link') }}
  • @else
  • {{ __('dashboard.shop_link') }}
  • @endif @if($sellerAccount->seller_commission_id == 3) @php $current_date = strtotime(date("Y-m-d")); $expiry_date = strtotime($subscription->expiry_date?$subscription->expiry_date:'1970-01-01'); @endphp @if (isset($subscription) && @$sellerAccount->seller_commission_id == 3 && $subscription->is_paid == 0 || isset($subscription) && $sellerAccount->seller_commission_id == 3 && $subscription->is_paid == 1 && $expiry_date < $current_date) @if(permissionCheck('seller.subscription_payment_select'))
  • {{ __('common.pay_first_for_subcription') }}
  • @endif @endif @endif
@if(permissionCheck('seller_widgets')) @endif
@if(permissionCheck('seller_widgets'))
@if (app('dashboard_setup')->where('type', 'total_product_card')->first()->is_active && permissionCheck('seller_widgets_total_product')) @endif @if (app('dashboard_setup')->where('type', 'total_order_card')->first()->is_active && permissionCheck('seller_widgets_total_order')) @endif @if (app('dashboard_setup')->where('type', 'total_pending_order_card')->first()->is_active && permissionCheck('seller_widgets_total_delivery_order')) @endif @if (app('dashboard_setup')->where('type', 'total_pending_order_card')->first()->is_active && permissionCheck('seller_widgets_non_total_delivery_order')) @endif @if (app('dashboard_setup')->where('type', 'total_completed_order_card')->first()->is_active && permissionCheck('seller_widgets_total_sale')) @endif @if (app('dashboard_setup')->where('type', 'total_review_card')->first()->is_active && permissionCheck('seller_widgets_shop_review'))

{{ __('dashboard.shop_review') }}

{{ $shop_review }}

@endif @if (app('dashboard_setup')->where('type', 'total_revenue_card')->first()->is_active && permissionCheck('seller_widgets_total_product_refund'))

{{ __('dashboard.total_product_refund') }}

{{ single_price($total_refund) }}

@endif @if (app('dashboard_setup')->where('type', 'total_revenue_card')->first()->is_active && permissionCheck('seller_widgets_total_product_refund'))

{{ __('Total Commision') }}

{{ single_price($total_commision) }}

@endif
@endif @if(permissionCheck('seller_graphs'))
@if(permissionCheck('seller_graphs_total_order_summary'))

{{ __('dashboard.total_order_summary') }}

@endif @if(permissionCheck('seller_graphs_total_sale_summary'))

{{ __('dashboard.total_sale_summary') }}

@endif @if(permissionCheck('seller_graphs_sales_vs_refund'))

{{ __('dashboard.sale_vs_refund') }}

@endif
@endif
@if(permissionCheck('seller_top_sale_products'))

{{ __('dashboard.top_sale_products') }}

@foreach($top_sale_products as $key => $top_ten_product) @endforeach
{{__('common.name')}} {{ __('common.brand') }} {{ __('dashboard.total_sale') }}
{{$top_ten_product->product->product_name}} {{$top_ten_product->product->brand->name}} {{$top_ten_product->total_sale}}
@endif @if(permissionCheck('seller_latest_uploaded_products'))

{{ __('dashboard.latest_uploaded_products') }}

] @foreach($latest_uploaded_products as $key => $product) @endforeach
{{__('common.name')}}{{ __('common.brand') }} {{ __('dashboard.total_sale') }}
{{$product->product->product_name}} {{$product->product->brand->name}} {{$product->total_sale}}
@endif @if(permissionCheck('seller_latest_orders'))

{{ __('dashboard.latest_order') }}

@foreach ($latest_orders as $key => $latest_order) @endforeach
{{__('common.date')}} {{__('common.order_id')}} {{__('order.order_state')}} {{__('common.total_amount')}} {{__('common.action')}}
{{ date(app('general_setting')->dateFormat->format, strtotime($latest_order->order->created_at)) }} {{ @$latest_order->order->order_number }} @if ($latest_order->order->is_confirmed == 1)
{{__('common.confirmed')}}
@elseif ($latest_order->order->is_confirmed == 2)
{{__('common.declined')}}
@else
{{__('common.pending')}}
@endif
{{single_price($latest_order->products->sum('total_price') + $latest_order->shipping_cost + $latest_order->tax_amount)}} {{__('common.details')}}
@endif @if(permissionCheck('seller_latest_refund_request'))

{{ __('dashboard.latest_refund_request') }}

@foreach ($latest_refund_requests as $key => $latest_refund) @endforeach
{{ __('common.date') }} {{ __('common.order_id') }} {{ __('common.total_amount') }} {{ __('dashboard.request_status') }} {{ __('dashboard.is_refunded') }} {{ __('dashboard.action') }}
{{ date(app('general_setting')->dateFormat->format, strtotime($latest_refund->created_at)) }} {{ @$latest_refund->order->order_number }} {{ single_price($latest_refund->total_return_amount) }} @if ($latest_refund->is_confirmed == 1)
{{ __('common.confirmed') }}
@elseif ($latest_refund->is_confirmed == 2)
{{ __('common.declined') }}
@else
{{ __('common.pending') }}
@endif
@if ($latest_refund->is_refunded == 1)
{{ __('common.refunded') }}
@else
{{ __('common.pending') }}
@endif
{{__('common.details')}}
@endif @if (isset($subscription) && permissionCheck('seller_subscription_payments'))

{{ __('dashboard.subscription_payments') }}

@foreach ($subscription_payment as $key => $payment) @endforeach
{{ __('common.date') }} {{ __('common.name') }} {{ __('common.total_amount') }} {{ __('common.payment_type') }}
{{ date(app('general_setting')->dateFormat->format, strtotime($payment->created_at)) }} {{ @$payment->subscription_payment->commission_type }} {{ single_price($payment->amount) }} {{ @$payment->subscription_payment->subscription_type }}
@endif
@endsection @push('scripts') @endpush