@extends('layouts.master') @section('title', 'Statistics | Proxima - Medical Management app') @section('title-topbar', 'Statistics') @section('css') @endsection @section('content')
Dashboard | Invoice | Month invoices
Income invoices
@foreach ($invoice_income as $item) @if ($item->payment_method == 1) @php $payment_method_txt = __('basic.cash'); @endphp @elseif ($item->payment_method == 2) @php $payment_method_txt = __('basic.visa'); @endphp @elseif ($item->payment_method == 3) @php $payment_method_txt = __('basic.online'); @endphp @elseif ($item->payment_method == 4) @php $payment_method_txt = __('basic.bank transfer'); @endphp @elseif ($item->payment_method == 5) @php $payment_method_txt = __('basic.mobile transfer'); @endphp @else @php $payment_method_txt = ''; @endphp @endif @endforeach
Date Total Cat Items Description Discount Method Patient Branch
TOTAL {{ $invoice_income->sum('total_paid') }} EGP
{{ date('d M', strtotime($item->paid_date)) }} @if ($item->status == 1) {{ $item->total_paid }} EGP
out of {{ $item->final_price }}
{{ __('basic.pending') }}
@else {{ $item->total_paid }} EGP @endif
{{ $item->service_inv_cat->name }} @foreach ($item->invoice_items as $item_items) @if ($item_items->categorizable) {{ $item_items->categorizable->name }} | @else No Items @endif @endforeach {{ $item->note }} @if ($item->worker)
shift: {{ $item->worker->name }}
@endif
@if ($item->discount) {{ $item->discount }} EGP
on {{ $item->items_price }} egp
@else @endif
{{ $payment_method_txt }} @if ($item->receivable) {{ $item->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif {{ $item->branch->name }}
Expenses invoices
@foreach ($invoice_expenses as $item) @if ($item->payment_method == 1) @php $payment_method_txt = __('basic.cash'); @endphp @elseif ($item->payment_method == 2) @php $payment_method_txt = __('basic.visa'); @endphp @elseif ($item->payment_method == 3) @php $payment_method_txt = __('basic.online'); @endphp @elseif ($item->payment_method == 4) @php $payment_method_txt = __('basic.bank transfer'); @endphp @elseif ($item->payment_method == 5) @php $payment_method_txt = __('basic.mobile transfer'); @endphp @else @php $payment_method_txt = ''; @endphp @endif @endforeach
Date Total Cat Items Description Discount Method Receiver Branch
TOTAL {{ $invoice_expenses->sum('total_paid') }} EGP
{{ date('d M', strtotime($item->paid_date)) }} @if ($item->status == 1) {{ $item->total_paid }} EGP
out of {{ $item->final_price }}
{{ __('basic.pending') }}
@else {{ $item->total_paid }} EGP @endif
{{ $item->service_inv_cat->name }} @foreach ($item->invoice_items as $item_items) @if ($item_items->categorizable) {{ $item_items->categorizable->name }} | @else No Items @endif @endforeach {{ $item->note }} @if ($item->worker)
shift: {{ $item->worker->name }}
@endif
@if ($item->discount) {{ $item->discount }} EGP
on {{ $item->items_price }} egp
@else @endif
{{ $payment_method_txt }} @if ($item->receivable) {{ $item->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif {{ $item->branch->name }}
Income totals cat
@foreach ($income_details_cat as $item) @endforeach
Name Total
TOTAL {{ $income_details_cat->sum('sums') }} EGP
{{ $item->service_inv_cat->name }} {{ $item->sums }} EGP
Expenses totals cat
@foreach ($expenses_details_cat as $item) @endforeach
Name Total
TOTAL {{ $expenses_details->sum('sums') }} EGP
{{ $item->service_inv_cat->name }} {{ $item->sums }} EGP
Income totals by items
@foreach ($income_details as $item) @endforeach
Name Total
TOTAL {{ $income_details->sum('sums') }} EGP
{{ $item->categorizable->name }} {{ $item->sums }} EGP
Expenses totals by items
@foreach ($expenses_details as $item) @endforeach
Name Total
TOTAL {{ $expenses_details->sum('sums') }} EGP
{{ $item->categorizable->name }} {{ $item->sums }} EGP
@role('Super-admin|Operation')
Operation income invoices
@foreach ($invoice_oper_income as $item) @if ($item->payment_method == 1) @php $payment_method_txt = __('basic.cash'); @endphp @elseif ($item->payment_method == 2) @php $payment_method_txt = __('basic.visa'); @endphp @elseif ($item->payment_method == 3) @php $payment_method_txt = __('basic.online'); @endphp @elseif ($item->payment_method == 4) @php $payment_method_txt = __('basic.bank transfer'); @endphp @elseif ($item->payment_method == 5) @php $payment_method_txt = __('basic.mobile transfer'); @endphp @else @php $payment_method_txt = ''; @endphp @endif @endforeach
Date Total Cat Items Description Discount Method Patient Branch
TOTAL {{ $invoice_oper_income->sum('total_paid') }} EGP
{{ date('d M', strtotime($item->paid_date)) }} @if ($item->status == 1) {{ $item->total_paid }} EGP
out of {{ $item->final_price }}
{{ __('basic.pending') }}
@else {{ $item->total_paid }} EGP @endif
{{ $item->service_inv_cat->name }} @foreach ($item->invoice_items as $item_items) @if ($item_items->categorizable) {{ $item_items->categorizable->name }} | @else No Items @endif @endforeach {{ $item->note }} @if ($item->worker)
shift: {{ $item->worker->name }}
@endif
@if ($item->discount) {{ $item->discount }} EGP
on {{ $item->items_price }} egp
@else @endif
{{ $payment_method_txt }} @if ($item->receivable) {{ $item->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif {{ $item->branch->name }}
Operation expenses invoices
@foreach ($invoice_oper_expenses as $item) @if ($item->payment_method == 1) @php $payment_method_txt = __('basic.cash'); @endphp @elseif ($item->payment_method == 2) @php $payment_method_txt = __('basic.visa'); @endphp @elseif ($item->payment_method == 3) @php $payment_method_txt = __('basic.online'); @endphp @elseif ($item->payment_method == 4) @php $payment_method_txt = __('basic.bank transfer'); @endphp @elseif ($item->payment_method == 5) @php $payment_method_txt = __('basic.mobile transfer'); @endphp @else @php $payment_method_txt = ''; @endphp @endif @endforeach
Date Total Cat Items Description Discount Method Patient Branch
TOTAL {{ $invoice_oper_expenses->sum('total_paid') }} EGP
{{ date('d M', strtotime($item->paid_date)) }} @if ($item->status == 1) {{ $item->total_paid }} EGP
out of {{ $item->final_price }}
{{ __('basic.pending') }}
@else {{ $item->total_paid }} EGP @endif
{{ $item->service_inv_cat->name }} @foreach ($item->invoice_items as $item_items) @if ($item_items->categorizable) {{ $item_items->categorizable->name }} | @else No Items @endif @endforeach {{ $item->note }} @if ($item->worker)
shift: {{ $item->worker->name }}
@endif
@if ($item->discount) {{ $item->discount }} EGP
on {{ $item->items_price }} egp
@else @endif
{{ $payment_method_txt }} @if ($item->receivable) {{ $item->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif {{ $item->branch->name }}
@endrole
Income Expenses
Net Income
@php $profit = $invoice_income->sum('total_paid') - $invoice_expenses->sum('total_paid'); @endphp {{ $profit }} EGP
@endsection @section('js') @endsection