@extends('admin.layout.master') @section('css') @endsection @section('content')
{{-- Title --}}

{{ __('admin.category_types_statistics') }}

{{-- Statistics Tables by Order Types --}}
@foreach($statistics as $typeStat)
{{ $typeStat['name'] }}
@if(isset($typeStat['sub_types']) && count($typeStat['sub_types']) > 0) ({{ implode(' - ', $typeStat['sub_types']) }}) @endif
@if(!empty($typeStat['categories']) && count($typeStat['categories']) > 0) @endif
@foreach($typeStat['stats'] as $stat) @endforeach
{{ __('admin.order_status') }} {{ __('admin.count') }}
{{ $stat['status_name'] }} {{ $stat['count'] }}
{{-- Categories Breakdown (Expandable) --}} @if(!empty($typeStat['categories']) && count($typeStat['categories']) > 0) @endif
@endforeach
{{-- Orders Table --}}
{{-- Table will be loaded here via AJAX --}}
@endsection @section('js') {{-- filter script --}} @include('admin.shared.filter_js' , [ 'index_route' => route('admin.order_profit_reports.index')]) {{-- filter script --}} @endsection