@extends('layouts.master') @if(count($invoice) > 0) @if($worker_type === "doctor") @php $worker_type = $invoice[0]->doctor->name; @endphp @elseif($worker_type === "worker") @php $worker_type = $invoice[0]->invoice->name; @endphp @else @php $worker_type = ""; @endphp @endif @endif @section('title', 'Search Invoice | Proxima - Medical Management app ' . $worker_type) @section('title-topbar', 'Search ' . $worker_type) @section('css') @endsection @section('content')
Status | Total | @role('Super-admin|Accountant')Cost | @endroleItem Price | Items | Description | Discount | Patient | Doctor | Branch |
---|---|---|---|---|---|---|---|---|---|
@if ($item->invoice->status == 0)
@php
$status = 'cancel-color-btn';
$status_msg = __('basic.not paid');
@endphp
@elseif ($item->invoice->status == 1)
@php
$status = 'pend-color-btn';
$status_msg = __('basic.pending');
@endphp
@elseif ($item->invoice->status == 2)
@php
$status = 'prog-color-btn';
$status_msg = __('basic.installment');
@endphp
@elseif ($item->invoice->status == 3)
@php
$status = 'done-color-btn';
$status_msg = __('basic.paid');
@endphp
@elseif ($item->invoice->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');
$total_income_cash += $item_p->amount;
@endphp
@elseif ($item_p->method == 2)
@php
$payment_method_txt = __('basic.visa');
$total_income_visa += $item_p->amount;
@endphp
@endif
{{ $item_p->amount }}
EGP
via {{ $payment_method_txt }} | shift:
{{ $item_p->worker->name }}
@endforeach
|
@role('Super-admin|Accountant')
{{ $item->invoice->total_cost }} EGP | @endrole@php $total_item_price += $item->price; @endphp {{ $item->price }} | {{ $item->categorizable->name }} | {{ $item->invoice->note }} |
@if ($item->invoice->discount)
{{ $item->invoice->discount }}
EGP
on {{ $item->invoice->items_price }} egp
@else
@endif
|
@if ($item->invoice->receivable) {{ $item->invoice->receivable->name }} @else {{ __('patientappo.no receiver') }} @endif | @if($item->doctor) {{ $item->doctor->name }} @endif | {{ $item->invoice->branch->name }} |
Paid | {{ $total_income = $total_income_cash + $total_income_visa }} EGP | Cash | {{ $total_income_cash }} EGP | Credit | {{ $total_income_visa }} EGP | Items Price | {{ $total_item_price }} EGP |