@extends('admin.layouts.master') @section('page-style') @include('plugins.ionic') @endsection @section('content') @include('admin.partials._check_misconfigured_subscription')
circle-image

{{ trans('app.customers') }}

{{ $customer_count }}

{{ trans('app.new_in_30_days', ['new' => $new_customer_last_30_days, 'model' => trans('app.customers')]) }}
circle-image

{{ trans('app.merchants') }}

{{ $merchant_count }}

{{ trans('app.new_in_30_days', ['new' => $new_merchant_last_30_days, 'model' => trans('app.merchants')]) }}
circle-image

{{ trans('app.orders') }}

{{ $total_order_count }}

@php $difference = $todays_all_order_count - $yesterdays_all_order_count; $todays_order_percents = $todays_all_order_count == 0 ? 0 : round(($difference / $todays_all_order_count) * 100); @endphp @if ($todays_all_order_count == 0)
{{ trans('messages.no_orders', ['date' => trans('app.today')]) }}
@else
{{ trans('messages.todays_order_percents', ['percent' => $todays_order_percents, 'state' => $difference < 0 ? trans('app.down') : trans('app.up')]) }}
@endif
circle-image

{{ trans('app.todays_sale') }}

{{ get_formated_currency($todays_sale_amount, 2, config('system_settings.currency.id')) }}

@php $difference = $todays_sale_amount - $yesterdays_sale_amount; $todays_sale_percents = $todays_sale_amount == 0 ? 0 : round(($difference / $todays_sale_amount) * 100); @endphp @if ($todays_sale_amount == 0)
{{ trans('messages.no_sale', ['date' => trans('app.today')]) }}
@else
{{ trans('messages.todays_sale_percents', ['percent' => $todays_sale_percents, 'state' => $difference < 0 ? trans('app.down') : trans('app.up')]) }}
@endif
{{ trans('app.pending_verifications') }} {{ $pending_verifications }}
{{ trans_choice('messages.pending_verifications', $pending_verifications, ['count' => $pending_verifications]) }}
{{ trans('app.pending_approvals') }} {{ $pending_approvals }}
{{ trans_choice('messages.pending_approvals', $pending_approvals, ['count' => $pending_approvals]) }}
{{ trans('app.appealed_disputes') }} {{ $dispute_count }} @php $last_months = $last_60days_dispute_count - $last_30days_dispute_count; $difference = $last_30days_dispute_count - $last_months; $last_30_days_percents = $last_months == 0 ? 100 : round(($difference / $last_months) * 100); @endphp
{{ trans('messages.last_30_days_percents', ['percent' => $last_30_days_percents, 'state' => $difference > 0 ? trans('app.increase') : trans('app.decrease')]) }}

{{ trans('app.catalog_graph') }}

{{ trans('app.open_tickets') }}

@forelse($open_tickets->take(5) as $ticket) @empty @endforelse
{{ trans('app.subject') }} {{ trans('app.priority') }} {{ trans('app.updated_at') }}
{{ $ticket->category->name }}

{{ $ticket->subject }}

{!! $ticket->priorityLevel() !!} {{ $ticket->replies_count }} {{ $ticket->updated_at->diffForHumans() }}
{{ trans('app.no_data_found') }}

{{ trans('app.top_customers') }}

@forelse($top_customers as $customer) @empty @endforelse
{{ trans('app.name') }} {{ trans('app.revenue') }}
@if ($customer->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif

@can('view', $customer) {{ $customer->getName() }} @else {{ $customer->getName() }} @endcan

{{ $customer->orders_count }} {{ get_formated_currency(round($customer->orders->sum('total')), 2, config('system_settings.currency.id')) }}
{{ trans('app.no_data_found') }}

{{ trans('app.top_vendors') }}

@forelse($top_vendors as $vendor) @empty @endforelse
{{ trans('app.name') }} {{ trans('app.revenue') }}
{{ trans('app.logo') }}

@can('view', $vendor) {{ $vendor->name }} @else {{ $vendor->name }} @endcan

{{ $vendor->inventories_count }} {{ $vendor->lifetime_value }}
{{ trans('app.no_data_found') }}

{{ trans('app.top_sale_products') }}

@foreach ($top_selling_products as $product) @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.sold') }} {{ trans('app.gtin') }} {{ trans('app.action') }}
{{ $product->name }} {{ $product->name }} {{ $product->inventories_sum_sold_quantity }} {{ $product->gtin_type }} {{ $product->gtin }} @can('update', $product) @endcan

{{ trans('app.recently_added_products') }}

@foreach ($latest_products as $product) @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.sold') }} {{ trans('app.gtin') }} {{ trans('app.action') }}
{{ $product->name }} {{ $product->name }} {{ $product->inventories_sum_sold_quantity }} {{ $product->gtin_type }} {{ $product->gtin }} @can('update', $product) @endcan

{{ trans('app.top_sale_brands') }}

@foreach ($top_selling_brands as $manufacturer) @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.sold') }} {{ trans('app.country') }} {{ trans('app.action') }}
{{ trans('app.image') }} {{ $manufacturer->name }} {{ $manufacturer->inventories_sum_sold_quantity }} {{ optional($manufacturer->country)->name }} @can('update', $manufacturer)   @endcan

{{ trans('app.top_sale_categories') }}

@foreach ($top_selling_categories as $category) @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.sold') }} {{ trans('app.parent') }} {{ trans('app.action') }}
{{ $category->name }} {{ $category->name }} {{ $category->listings_sum_sold_quantity }} {{ $category->subGroup->name }} {{ $category->subGroup->group->name }} @can('update', $category)   @endcan
@endsection @section('page-script') @include('plugins.chart') {!! $chart->script() !!}