@extends('backend.layouts.app') @section('content')

{{ translate('Earning Report') }}

{{ single_price($total_sales_alltime) }}

{{ translate('Total Sales Alltime') }}

{{ translate('Sales this month') }}

{{ single_price($sales_this_month) }}

@if(env('ENABLE_SELLER') == true)

{{ single_price($total_payouts) }}

{{ translate('Payouts') }}

{{ translate('Payouts this month') }}

{{ single_price($payout_this_month) }}

@endif

{{ $total_categories }}

{{ translate('Total Category') }}

@foreach ($top_categories as $key => $top_category)
@php $badge = 'badge-danger'; if ($key == 1) { $badge = 'badge-warning'; } if ($key == 2) { $badge = 'badge-primary'; } $lang = App::getLocale(); $category = App\Models\CategoryTranslation::where('category_id', $top_category->id) ->where('lang', $lang) ->first(); @endphp

{{ $category ? $category->name : translate('Not Found') }}

{{ single_price($top_category->total) }}

@endforeach

{{ $total_brands }}

{{ translate('Total Brands') }}

{{ translate('Top Brands') }}

@foreach ($top_brands as $key => $top_brand)
@php $badge = 'badge-success'; if ($key == 1) { $badge = 'badge-primary'; } if ($key == 2) { $badge = 'badge-info'; } $lang = App::getLocale(); $brand = App\Models\BrandTranslation::where('brand_id', $top_brand->id) ->where('lang', $lang) ->first(); @endphp

{{ $brand ? $brand->name : translate('Not Found') }}

{{ single_price($top_brand->total) }}

@endforeach
@if(env('ENABLE_SELLER') == true)
@endif @if(env('ENABLE_SELLER' == true))
@endif @if(env('ENABLE_SELLER' == true))
@endif @if(env('ENABLE_SELLER' == true))
@endif
@endsection @section('script') @endsection