@extends('layout.mainlayout') @section('content')
@component('components.page-header') @slot('title') Dashboard @endslot @slot('li_1') Admin Dashboard @endslot @endcomponent

Good Morning, Daniel Bruk

Have a nice day at work

@php $json = file_get_contents(public_path('../public/assets/json/admin-dashboard.json')); $dashboards = json_decode($json, true); @endphp @foreach ($dashboards as $dashboard)

{{ $dashboard['type'] }}

@if ($dashboard['type'] === 'Earnings')

${{ $dashboard['count'] }}

@else

{{ $dashboard['count'] }}

@endif

{{ $dashboard['change'] }} vs last month

@endforeach

Patient Visit by Gender

@livewire('select-dashboard')

Patient by Department

Top Departments

@php $json = file_get_contents(public_path('../public/assets/json/admin-dashboard-departments.json')); $departments = json_decode($json, true); @endphp @foreach ($departments as $department) @if ($department['name'] === 'Opthomology')
@else
@endif

{{ $department['name'] }}

{{ $department['percentage'] }}

@endforeach
@livewire('admin-dashboard-appointments')
@livewire('admin-dashboard-patinets')
@component('components.notification-box') @endcomponent
@endsection