@extends('layouts.master') @section('title', 'Statistics | Proxima - Medical Management app') @section('title-topbar', 'Statistics') @section('css') @endsection @section('content')
Dashboard | Month pulses
Total Pulses
@php //$profit = $all_pulses->sum('total_paid') - $all_pulses->sum('total_paid'); @endphp {{ $all_pulses->sum('used_pulses') }} ps
All Pulses
@foreach ($all_pulses as $item) @if ($item->type == 0) @php $text_color = 'active-color-btn'; $msg = __('patientappo.session'); @endphp @elseif ($item->type == 1) @php $text_color = 'done-color-btn'; $msg = __('basic.money per pulse'); @endphp @elseif ($item->type == 2) @php $text_color = 'prog-color-btn'; $msg = __('basic.session package'); @endphp @elseif ($item->type == 3) @php $text_color = 'not_accepted-color-btn'; $msg = __('basic.pulses package'); @endphp @endif @if ($item->invoice_item) @if ($item->invoice_item->invoice->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.not paid'); @endphp @elseif ($item->invoice_item->invoice->status == 1) @php $text_color_invoice = 'pend-color-btn'; $msg_invoice = __('basic.pending'); @endphp @elseif ($item->invoice_item->invoice->status == 2) @php $text_color_invoice = 'prog-color-btn'; $msg_invoice = __('basic.installment'); @endphp @elseif ($item->invoice_item->invoice->status == 3) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.paid'); @endphp @elseif ($item->invoice_item->invoice->status == 4) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.refund'); @endphp @endif @php $invoice_url = 'href=' . route('sett.invoice.show', $item->invoice_item->invoice->id); @endphp @else @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.from package'); $invoice_url = ''; @endphp @endif @endforeach
{{ __('basic.date') }} {{ __('basic.type') }} {{ __('basic.name') }} {{ __('basic.patient') }} {{ __('basic.doctor') }} {{ __('patientappo.pay status') }} {{ __('basic.fluence') }} {{ __('basic.pulse area') }} {{ __('basic.spot size') }} {{ __('basic.balance before session') }} {{ __('basic.used pulses') }} {{ __('basic.add pulses') }}
TOTAL {{ $all_pulses->sum('used_pulses') }} ps
{{ date('d M Y', strtotime($item->date)) }} {{ $msg }} {{ $item->patient->name }} @if ($item->service_item) {{ $item->service_item->name }} @else Taken from package @endif @if ($item->doctor) {{ $item->doctor->name }} @else No selected @endif {{ $msg_invoice }} {{ $item->fluence }} @if ($item->pulse_area) @foreach ($item->pulse_area as $pulse_area) {{ $pulse_area->name .','}} @endforeach @else @endif {{ $item->spot_size }} {{ $item->balance_before_session }} {{ $item->used_pulses }} {{ $item->add_pulses }}
All doctor pulses
@foreach ($doctor_pulses as $item) @endforeach
Name Total
TOTAL {{ $all_pulses->sum('used_pulses') }} ps
@if ($item->doctor) {{ $item->doctor->name }} @else No selected @endif {{ $item->total }} ps
All doctor pulses chart
Doctor pulses chart
@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', '#dc3545', '#51b24b', '#a94bb2', '#4b8bb2', '#57b24b', '#a5b24b', '#b2804b', '#b24b4b', '#834bb2', '#b24b6a', '#574bb2', '#236368', '#232c68', '#682345', '#4b2368', '#234b68', '#306823', '#a39f39', '#a239a3', '#a33963', '#a33951', '#a33939', '#c73737', '#6837c7']; @endphp @endsection