@extends('admin.layouts.master') @section('page-style') @include('plugins.ionic') @endsection @section('content') @include('admin.partials._subscription_notice')
{{ trans('app.unfulfilled_orders') }} {{ $unfulfilled_order_count }} @php $unfulfilled_percents = $todays_order_count == 0 ? $unfulfilled_order_count * 100 : round(($unfulfilled_order_count / $todays_order_count) * 100); @endphp
{{ trans('messages.unfulfilled_percents', ['percent' => $unfulfilled_percents]) }}
{{ trans('app.last_sale') }} {{ get_formated_currency($last_sale ? $last_sale->total : 0, 2, config('system_settings.currency.id')) }} @if ($last_sale) @endif
@if ($last_sale) {{ $last_sale->created_at->diffForHumans() }} @else {{ trans('messages.no_sale', ['date' => trans('app.yet')]) }} @endif
{{ 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 ? round(($difference / $todays_sale_amount) * 100) : 0; @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.stock_outs') }} {{ $stock_out_count }} @php $stock_out_percents = $stock_count > 0 ? round(($stock_out_count / $stock_count) * 100) : $stock_out_count * 100; @endphp
{{ trans('messages.stock_out_percents', ['percent' => $stock_out_percents, 'total' => $stock_count]) }}
@if ($dispute_count > 0 || $refund_request_count > 0)
{{ trans('app.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 ? round(($difference / $last_months) * 100) : 100; @endphp
{{ trans('messages.last_30_days_percents', ['percent' => $last_30_days_percents, 'state' => $difference > 0 ? trans('app.increase') : trans('app.decrease')]) }}
{{ trans('app.refund_requests') }} {{ $refund_request_count }} @php $last_months = $last_60days_refund_request_count - $last_30days_refund_request_count; $difference = $last_30days_refund_request_count - $last_months; $last_30_days_percents = $last_months > 0 ? round(($difference / $last_months) * 100) : 100; @endphp
{{ trans('messages.last_30_days_percents', ['percent' => $last_30_days_percents, 'state' => $difference > 0 ? trans('app.increase') : trans('app.decrease')]) }}
@endif