@extends('admin.layouts.master') @section('main-content')

{{ __('dashboard.dashboard') }}

{{ Breadcrumbs::render('dashboard') }}
@if (auth()->user()->myrole == 1) {{-- total order --}}

{{ __('dashboard.total_orders') }}

{{ $totalOrders }}
{{-- total user --}}

{{ __('dashboard.total_customers') }}

{{ $totalUsers }}
{{-- total shop --}}

{{ __('dashboard.total_restaurants') }}

{{ $totalRestaurants }}
{{-- total income --}}

{{ __('dashboard.total_income') }}

{{ number_format($totalIncome, 2) }}
@elseif(auth()->user()->myrole == 3)

{{ __('dashboard.pending_orders') }}

{{ $ownerNotificationOrders }}
{{-- total order --}}

{{ __('dashboard.total_orders') }}

{{ $ownerTotalOrders }}
{{-- total Booking --}}

{{ __('dashboard.total_booking') }}

{{ $ownerTotalReservations }}
{{-- total income --}}

{{ __('dashboard.available_credit') }}

{{ $userCredit}}
@elseif(auth()->user()->myrole == 4) {{-- Notification order --}}

{{ __('dashboard.total_notification_order') }}

{{ $notificationOrders }}
{{-- total Order --}}

{{ __('dashboard.total_orders') }}

{{ $totalDaliveryOrders }}
{{-- total income --}}

{{ __('dashboard.available_credit') }}

{{ $userCredit}}
@endif

{{ __('dashboard.recent_orders') }} {{ $recentOrders->count() }}

@if(!blank($recentOrders)) @foreach($recentOrders as $order) @if($loop->index > 4) @break @endif @endforeach @endif
{{ __('levels.name') }} {{ __('levels.status') }} {{ __('levels.total') }} {{ __('levels.action') }}
{{ $order->user->name }} {{ trans('order_status.' . $order->status) }} {{ number_format($order->total, 2) }}

{{ auth()->user()->name }}

{{ auth()->user()->getrole->name ?? '' }}

  • {{ auth()->user()->username }}
  • {{ auth()->user()->email }}
  • {{ auth()->user()->phone }}
  • {{ auth()->user()->address }}
  • @endsection @section('scripts') @include('vendor.installer.update.OrderIncomeGraph') @endsection