@extends('backend.layouts.app', ['isBanner' => false]) @section('title') {{ 'Dashboard' }} @endsection @section('content')

{{ greeting() }} {{ $current_user }}

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

{{--
--}}

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

age-image-0-20
@lang('messages.0_25_age')
{{ $data['child_patient_count'] }}
age-image-0-20
@lang('messages.26_50_age')
{{ $data['adult_patient_count'] }}
age-image-0-20
@lang('messages.50+_age')
{{ $data['old_patient_count'] }}

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

@if (count($data['upcomming_appointments']) >= 5) {{ __('dashboard.view_all') }} @endif
    @forelse ($data['upcomming_appointments'] as $upcomming_appointments)
  • {{ date($data['dateformate'], strtotime($upcomming_appointments->appointment_date)) }}

    {{ $upcomming_appointments->appointment_time ? \Carbon\Carbon::parse($upcomming_appointments->appointment_time)->timezone($timeZone)->format($data['timeformate']) : '--' }}
    {{ optional($upcomming_appointments->user)->full_name }}

    {{ __('clinic.lbl_clinic_name') }}: {{ optional($upcomming_appointments->cliniccenter)->name }}

    {{ optional($upcomming_appointments->clinicservice)->name }} By {{ optional($upcomming_appointments->doctor)->full_name }}
    {{--

    {{ date($data['dateformate'], strtotime($upcomming_appointments->start_date_time)) }}

    {{ date($data['timeformate'], strtotime($upcomming_appointments->start_date_time)) }}
    {{ optional($upcomming_appointments->user)->full_name }}

    {{__('clinic.lbl_clinic_name')}}: {{optional($upcomming_appointments->cliniccenter)->name}}

    {{optional($upcomming_appointments->clinicservice)->name}} By {{optional($upcomming_appointments->doctor)->full_name}}
    --}}
  • @empty
  • {{ __('dashboard.no_data_available') }}
  • @endforelse
@if (multiVendor() == '1' && (auth()->user()->hasRole('admin') || auth()->user()->hasRole('demo_admin')))

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

@if (count($data['register_vendor']) >= 4) {{ __('dashboard.view_all') }} @endif
    @forelse ($data['register_vendor'] as $register_vendors)
  • user-image
    {{ $register_vendors->full_name }}
    {{ date($data['dateformate'], strtotime($register_vendors->created_at)) }} At {{ date($data['timeformate'], strtotime($register_vendors->created_at)) }}
    {{ $register_vendors->email_verified_at !== null ? __('messages.verified') : __('messages.unverified') }}
  • @empty
  • {{ __('dashboard.no_data_available') }}
  • @endforelse
@endif @if (multiVendor() == '0')
@else
@endif

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

@if (count($data['payment_history']) >= 5) {{ __('dashboard.view_all') }} @endif
@forelse ($data['payment_history'] as $paymenthistory) @php $transaction = $paymenthistory->appointmenttransaction; if ($transaction) { if ($transaction->payment_status == 1) { $payment_status = __('dashboard.paid'); } elseif ( $transaction->payment_status == 0 && $transaction->advance_payment_status == 1 ) { $payment_status = __('dashboard.advance_paid'); } else { $payment_status = __('dashboard.pending'); } } @endphp @if ($transaction) @endif @empty @endforelse
{{ __('sidebar.patient') }} {{ __('messages.date_time') }} {{ __('clinic.singular_title') }} {{ __('messages.service') }} {{ __('appointment.price') }} {{ __('earning.lbl_payment_method') }} {{ __('appointment.lbl_payment_status') }}
{{ optional($paymenthistory->user)->full_name }} {{ date($data['dateformate'], strtotime($paymenthistory->appointment_date)) }} At {{ date($data['timeformate'], strtotime($paymenthistory->appointment_time)) }} {{ optional($paymenthistory->cliniccenter)->name }} {{ optional($paymenthistory->clinicservice)->name }} {{ Currency::format($transaction->total_amount) }} {{ ucfirst($transaction->transaction_type) }} {{ $payment_status }}
{{ __('messages.payment_history_notavailable') }}
@endsection @push('after-styles') @endpush @push('after-scripts') @endpush