@extends('layouts.master') @section('title', 'Statistics | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.statistics')) @section('css') @endsection @section('content')
| {{ __('basic.status') }} | {{ __('basic.total') }} | @role('Super-admin|Accountant'){{ __('basic.cost') }} | @endrole{{ __('basic.items') }} | {{ __('basic.description') }} | {{ __('basic.discount') }} | {{ __('basic.patient') }} | {{ __('basic.branch') }} |
|---|---|---|---|---|---|---|---|
|
@if ($item->status == 1)
@php
$status = 'pend-color-btn';
$status_msg = __('basic.pending');
@endphp
@elseif ($item->status == 2)
@php
$status = 'prog-color-btn';
$status_msg = __('basic.installment');
@endphp
@elseif ($item->status == 3)
@php
$status = 'done-color-btn';
$status_msg = __('basic.paid');
@endphp
@elseif ($item->status == 4)
@php
$status = 'cancel-color-btn';
$status_msg = __('basic.refund');
@endphp
@endif
{{ $status_msg }}
|
@foreach ($item->payment as $item_p)
@if ($item_p->method == 1)
@php
$payment_method_txt = __('basic.cash');
@endphp
@elseif ($item_p->method == 2)
@php
$payment_method_txt = __('basic.visa');
@endphp
@endif
{{ $item_p->amount }}
EGP
via {{ $payment_method_txt }} | shift:
{{ $item_p->worker->name }}
@endforeach
|
@role('Super-admin|Accountant')
{{ $item->total_cost }} | @endrole@foreach ($item->invoice_items as $item_items) {{ $item_items->categorizable->name }} | @endforeach | {{ $item->note }} |
@if ($item->discount)
{{ $item->discount }}
EGP
on {{ $item->items_price }} EGP
@else
@endif
|
@if ($item->receivable) {{ $item->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif | {{ $item->branch->name }} |
| TOTAL | {{ $total_income = $total_income_cash + $total_income_visa }} EGP | Cash | {{ $total_income_cash }} EGP | Credit | {{ $total_income_visa }} EGP | @role('Super-admin|Accountant')Cost | {{ $invoice_income_inv->sum('total_cost') }} EGP | @endrole
| {{ __('basic.status') }} | {{ __('basic.total') }} | {{ __('basic.cost') }} | {{ __('basic.items') }} | {{ __('basic.description') }} | {{ __('basic.discount') }} | {{ __('basic.patient') }} | {{ __('basic.branch') }} |
|---|---|---|---|---|---|---|---|
|
@if ($item->status == 1)
@php
$status = 'pend-color-btn';
$status_msg = __('basic.pending');
@endphp
@elseif ($item->status == 2)
@php
$status = 'prog-color-btn';
$status_msg = __('basic.installment');
@endphp
@elseif ($item->status == 3)
@php
$status = 'done-color-btn';
$status_msg = __('basic.paid');
@endphp
@elseif ($item->status == 4)
@php
$status = 'cancel-color-btn';
$status_msg = __('basic.refund');
@endphp
@endif
{{ $status_msg }}
|
@foreach ($item->payment as $item_p)
@if ($item_p->method == 1)
@php
$payment_method_txt = __('basic.cash');
@endphp
@elseif ($item_p->method == 2)
@php
$payment_method_txt = __('basic.visa');
@endphp
@endif
{{ $item_p->amount }}
EGP
{{ __('basic.via') }} {{ $payment_method_txt }} | {{
__('basic.shift') }}:
{{ $item_p->worker->name }}
@endforeach
|
{{ $item->total_cost }} | @foreach ($item->invoice_items as $item_items) {{ $item_items->categorizable->name }} | @endforeach | {{ $item->note }} |
@if ($item->discount)
{{ $item->discount }}
EGP
on {{ $item->items_price }} EGP
@else
@endif
|
@if ($item->receivable) {{ $item->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif | {{ $item->branch->name }} |
| {{ __('basic.total') }} | {{ $total_expenses = $total_expenses_cash + $total_expenses_visa }} EGP | {{ __('basic.cash') }} | {{ $total_expenses_cash }} EGP | {{ __('basic.credit') }} | {{ $total_expenses_visa }} EGP | {{ __('basic.cost') }} | {{ $invoice_expenses_inv->sum('total_cost') }} EGP |
| {{ __('basic.name') }} | {{ __('basic.total') }} |
|---|---|
| {{ $item->service_inv_cat->name }} | {{ $item->sums }} EGP |
| {{ __('basic.total') }} | {{ $income_details_cat_total }} EGP |
| {{ __('basic.name') }} | {{ __('basic.total') }} |
|---|---|
| {{ __('basic.total') }} | {{ $expenses_details->sum('sums') }} EGP |
| {{ $item->service_inv_cat->name }} | {{ $item->sums }} EGP |
| Name | Total |
|---|---|
| TOTAL | {{ $income_details->sum('sums') }} EGP |
| {{ $item->categorizable->name }} | {{ $item->sums }} EGP |
| Name | Total |
|---|---|
| TOTAL | {{ $expenses_details->sum('sums') }} EGP |
| {{ $item->categorizable->name }} | {{ $item->sums }} EGP |