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

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

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

Upcoming Appointment

@if(count($data['upcomming_appointments']) >= 10) {{ __('clinic.view_all') }} @endif
    @forelse ($data['upcomming_appointments'] as $upcomming_appointments)
  • {{ 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
  • No data available
  • @endforelse

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

@if(count($data['top_location']) >= 4) {{ __('clinic.view_all') }} @endif
@forelse ($data['top_location'] as $toplocation) @empty @endforelse
{{__('clinic.clinic_image')}} {{__('clinic.lbl_clinic_name')}} {{__('appointment.appointment_title')}} {{__('appointment.amount')}}
table-image {{ $toplocation['clinic_name'] }} {{ $toplocation['appointment_count'] }} {{ Currency::format($toplocation['total_amount']) }}
{{ __('messages.top_location_not_available') }}

Payment History

@if(count($data['payment_history']) >= 5) {{ __('clinic.view_all') }} @endif
@forelse ($data['payment_history'] as $paymenthistory) @empty @endforelse
{{ __('messages.patient_name') }} {{ __('messages.date') }} {{ __('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(optional($paymenthistory->appointmenttransaction)->total_amount) }} {{ optional($paymenthistory->appointmenttransaction)->transaction_type }} {{ optional($paymenthistory->appointmenttransaction)->payment_status == 1 ? 'Paid' : 'Pending' }}
{{ __('messages.payment_history_notavailable') }}
@endsection @push('after-styles') @endpush @push('after-scripts') @endpush