@extends('back.master') @section('title', __('Dashboard')) @section('additional_head_tags') @endsection @section('content')

{{ __('Items') }}

{{ $counts->products }}

{{ __('Orders') }}

{{ $counts->orders }}

{{ __('Earnings') }}

{{ config('payments.currency_code') .' '. number_format($counts->earnings, 2) }}

{{ __('Users') }}

{{ $counts->users }}

{{ __('Comments') }}

{{ $counts->comments }}

{{ __('Subscribers') }}

{{$counts->newsletter_subscribers }}

{{ __('Categories') }}

{{ $counts->categories }}

{{ __('Posts') }}

{{ $counts->posts }}

@foreach($transactions as $transaction) @endforeach

{{ __('Latest transactions') }}

{{ __('Products') }} {{ __('Buyer') }} {{ __('Amount') }} ({{ config('payments.currency_code') }}) {{ __('Processor') }} {{ __('Date') }}
@if($transaction->is_subscription) {{ __('Subscription') .' - '. $transaction->products[0] }} @else
@foreach($transaction->products as $product) {{ $product }} @endforeach
@endif
{{ $transaction->buyer_name ?? $transaction->buyer_email }} {{ number_format($transaction->amount, 2) }} {{ $transaction->processor }} {{ $transaction->date }}
{{ __('Sales') }}
{{ __('Sales evolution per month') }}
@foreach($newsletter_subscribers as $newsletter_subscriber) @endforeach

{{ __('Latest newsletter subscribers') }}

{{ __('Email') }} {{ __('Date') }}
{{ $newsletter_subscriber->email }} {{ $newsletter_subscriber->created_at }}
@foreach($reviews as $review) @endforeach

{{ __('Latest reviews') }}

{{ __('Product') }} {{ __('Review') }} {{ __('Date') }}
{{ $review->product_name }}
{{ $review->created_at }}
@endsection