@extends('client.layout.master') @section('page-title', 'Client') @section('breadcrumb') @endsection @section('title','Client') @push('css') @endpush @section('content')

Sales Overview

45

Today Appointments

9,453

Total Appointments

$1,786

This Month Income

3,542

Total Patients

Latest Visits

@foreach($visits as $visit)
@if($visit->patient && $visit->patient->image) {{ $visit->patient?->name }} @else Default User @endif
Code: {{ $visit->code }}

{{ $visit->patient?->name ?? '---' }}

{{ \Carbon\Carbon::parse($visit->date)->format('d M Y') }} {{ \Carbon\Carbon::parse($visit->time)->format('h:i A') }}
{{ $visit->clinic?->name ?? '---' }}
{{ $visit->clinic_service?->service }}
{{ $visit->amount_paid }}
{{ $visit->status }}
@php $isCanceledByPatient = $visit->status == \App\Support\Enum\AppointmentStatus::CANCEL_BY_PATIENT; $hasChildren = $visit->children()->count() > 0; $isCompleted = $visit->status == \App\Support\Enum\AppointmentStatus::COMPLETED; @endphp @if(!$isCanceledByPatient || !($hasChildren && $isCompleted)) @endif @if($visit->status!=\App\Support\Enum\AppointmentStatus::COMPLETED) @endif
@endforeach

Patient Analytics

Monthly Revenue

Daily Task

@endsection @push('js') @endpush