@extends('settings::layouts.master') @section('content') {{-- @include("settings::statics._charts") --}}
{{ __('ads') }}
@include("settings::components._card-counter", [ 'title' =>__('active'), 'count' =>$ads->where('is_active',1)->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('disabled'), 'count' =>$ads->where('is_active',0)->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('show_in_ribbon'), 'count' =>$ads->where('show_in_ribbon',1)->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('show_in_banner'), 'count' =>$ads->where('show_in_banner',1)->count() ] )
{{-- end row --}}
{{-- end col-12 --}}
{{ __('products') }}
@include("settings::components._card-counter", [ 'title' =>__('active'), 'count' =>$products->where('is_active',1)->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('disabled'), 'count' =>$products->where('is_active',0)->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('closed'), 'count' =>$products->where('is_closed',1)->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('opend'), 'count' =>$products->where('is_closed',0)->count() ] )
{{-- end row --}}
{{-- end col-12 --}}
{{ __('invoices') }}
@include("settings::components._card-counter", [ 'title' =>__('pending'), 'count' =>$invoices->where('status','pending')->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('mada'), 'count' =>$invoices->where('payment_method','mada')->count() ] )
@include("settings::components._card-counter", [ 'title' =>__('apple'), 'count' =>$invoices->where('payment_method','apple')->count() ] )
{{-- end row --}}
{{-- end col-12 --}}
{{__('latest')}} {{__('products')}}
@forelse ($latest_products as $product) @empty @endforelse
@lang('title') @lang('status') @lang('price') @lang('type')
{{$product->title}}
{{$product->status}} {{$product->price}} {{__($product->type)}}
{{__('latest')}} {{__('ads')}}
@forelse ($latest_ads as $ad) @empty @endforelse
@lang('title') @lang('status') @lang('starting_at') @lang('ending_at')
{{$ad->title}}
{{$ad->status}} {{$ad->starting_at}} {{ $ad->ending_at }}
@endsection