@if (checkAdminHasPermission('dashboard.view')) {{-- Show Credentials Setup Alert --}}
@if (Route::is('admin.dashboard') && ($checkCredentials = checkCredentials())) @foreach ($checkCredentials as $checkCredential) @if ($checkCredential->status)
{{ $checkCredential->message }}
{{ $checkCredential->description }} {{ __('Update') }}
@endif @endforeach @endif
@if ($setting->is_queable == 'active' && Cache::get('corn_working') !== 'working')
@endif @endif
@if (checkAdminHasPermission('dashboard.view'))

{{ __('New Appointment') }}

{{ $new_appointment_qty ?? 0 }}

{{ __('Pending Orders') }}

{{ $pending_orders_qty ?? 0 }}

{{ __('Successful Appointment') }}

{{ $success_appointment_qty ?? 0 }}

{{ __('Total Client') }}

{{ $client_qty ?? 0 }}

{{ __('Total Lawyer') }}

{{ $lawyer_qty ?? 0 }}

{{ __('Earnings') }} ({{ __('Monthly') }})

{{ currency($monthlyEarning) }}

{{ __('Earnings') }} ({{ __('Total') }})

{{ currency($totalEarning) }}

{{ __('Total Subscriber') }}

{{ $subscriber_qty ?? 0 }}

{{ __('Pending Orders') }}

@forelse ($pending_orders as $index => $pending_order) @empty @endforelse
{{ __('SN') }} {{ __('Name') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Date') }} {{ __('Payment') }} {{ __('Action') }}
{{ ++$index }} {{ $pending_order?->user?->name }} {{ $pending_order?->user?->email }} {{ $pending_order?->user?->details?->phone }} {{ formattedDate($pending_order?->created_at) }} @if ($pending_order->payment_status == 0) {{ __('Pending') }} @else {{ __('Success') }} @endif

{{ __('Lawyer Payment In') }} {{ date('F, Y') }}

@forelse ($payment_histories as $index => $payment) @empty @endforelse
{{ __('SN') }} {{ __('Name') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Amount') }}
{{ ++$index }} {{ $payment?->lawyer?->name }} {{ $payment?->lawyer?->email }} {{ $payment?->lawyer?->phone }} {{ currency($payment?->total_payment_fee) }}
@if (request()->get('par-page') !== 'all')
{{ $payment_histories->onEachSide(0)->links() }}
@endif
{{ __('Earnings In') }} {{ request()->has('year') && request()->has('month') ? Carbon\Carbon::createFromFormat('Y-m', request('year') . '-' . request('month'))->format('F, Y') : date('F, Y') }}
@endif