@php($revenues = fn (string $key): array => collect($count['revenues'])->pluck($key)->toArray())
{{ trans('plugins/ecommerce::reports.sales_reports') }}
@if($earningSales = $salesReport['earningSales'])
    @foreach($earningSales as $earningSale)
  • {{ $earningSale['text'] }}
  • @endforeach
@endif
{{ trans('plugins/ecommerce::reports.earnings') }}
@if (collect($count['revenues'])->count())
@foreach (collect($count['revenues'])->where('status') as $item) {{ format_price($item['value']) }} @endforeach {{ trans('plugins/ecommerce::reports.total_earnings') }}
@foreach ($count['revenues'] as $item)

{{ format_price($item['value']) }} {{ $item['label'] }}

@endforeach
@else
@include('core/dashboard::partials.no-data')
@endif
@if(request()->ajax()) @include('plugins/ecommerce::reports.widgets.chart-script') @else @push('footer') @include('plugins/ecommerce::reports.widgets.chart-script') @endpush @endif