@extends('layouts.master') @section('title', 'Live Report | Proxima - Medical Management app') @section('title-topbar', 'Live Report') @section('css') @endsection @section('content')
Dashboard | Live Report
Filter
Total appointments today until now
Total appointments today until now
@php //$profit = $all_pulses->sum('total_paid') - $all_pulses->sum('total_paid'); @endphp {{ $appointment_total }} Appointments
Total Appointments Status percentage
@foreach ($appointment_status as $item) @php if ($item->status == 0) { $status = 'not_accepted-color'; $msg = __('patientappo.not accepted'); } elseif ($item->status == 1) { $status = 'main-color'; $msg = __('patientappo.accepted'); } elseif ($item->status == 2) { $status = 'arrived-color'; $msg = __('patientappo.arrived'); } elseif ($item->status == 3) { $status = 'inprog-color'; $msg = __('patientappo.with doctor'); } elseif ($item->status == 4) { $status = 'done-color'; $msg = __('patientappo.done'); } elseif ($item->status == 5) { $status = 'notresp-color'; $msg = __('patientappo.not respond'); } elseif ($item->status == 6) { $status = 'cancel-color'; $msg = __('patientappo.canceled'); } @endphp
{{ $msg }}

{{ round(($item->total / $appointment_total) * 100, 1) }} %

@endforeach
Total patients today until now
Total patients today until now
@php //$profit = $all_pulses->sum('total_paid') - $all_pulses->sum('total_paid'); @endphp {{ $patient_branches->sum('total') }} Patients
Attendance
@role('Super-admin|Hr') @endrole @foreach ($atten as $item) @role('Super-admin|Hr') @endrole @endforeach
{{ __('basic.name') }} {{ __('basic.branch') }} {{ __('basic.start') }} {{ __('basic.end') }} {{ __('basic.working hours') }}{{ __('basic.handle') }}
{{ $item->worker->name }} {{ $item->branch->name }} {{ date('h:i A', strtotime($item->arrived_time)) }} {{ date('h:i A', strtotime($item->leave_time)) }} @php $totalDuration = Carbon\Carbon::parse($item->leave_time) ->diff($item->arrived_time) ->format('%H hour %i minute'); $totalDuration_hours = Carbon\Carbon::parse($item->leave_time) ->diff($item->arrived_time) ->format('%H'); @endphp @if ($totalDuration_hours >= $fixed_working_hours) @endif {{ $totalDuration }} {{ __('basic.edit') }}
Total workers performance today until now
Top Appointment Creators
Top Doctors
Top Appointment Confirmation
Top Accountants
@endsection @section('js') @php $chart_color = ['#1a78f1', '#38dfa8', '#d13c62', '#12c7d9', '#03c2c3', '#5035df', '#17a673', '#2e59d9', '#9aeded', '#f3d56a', '#7c859d', '#a4adc5', '#80142f', '#33d293', '#bed233', '#3958e9', '#10c86f', '#654fb6', '#a44fb6', '#89728e', '#c85110', '#6d769d', '#1b6954', '#204494', '#94206b', '#948320', '#209493', '#292094', '#203a65', '#4e6fa5', '#e29031', '#e23168', '#31e0e2', '#e29131', '#319fe2', '#8131e2', '#31a8e2', '#31e2c0', '#31c3e2', '#e2a931', '#3157e2']; @endphp @endsection