@extends('layouts.land.master_top_empty') @section('title', prox_sett('clinicname') . " الملف الطبي في عيادات") @section('css') @endsection @section('content')

الملف الطبي

@php $accepted_appointment = [2, 3, 4]; @endphp @foreach ($appointments as $item) @if (in_array($item->status, $accepted_appointment)) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @else @php $text_color = 'cancel-color-btn'; $msg = 'Not finished'; @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 @else @php $msg_invoice = 'Old Appointment'; $text_color_invoice = 'done-color-btn'; @endphp @endif @endforeach
الاسم الفرع الدكتور بداية النهاية الحالة حالة الدفع كود الدفع
{{ $item->service_item->name }} {{ $item->branch->name }} @isset($item->doctor->first_name) {{ $item->doctor->first_name }} @endisset {{ date('Y-m-d', strtotime($item->start_at)) }}
{{ date('h:i a', strtotime($item->start_at)) }}
{{ date('Y-m-d', strtotime($item->end_at)) }}
{{ date('h:i a', strtotime($item->end_at)) }}
{{ $msg }} {{ $msg_invoice }} @if ($item->invoice) {{ $item->invoice_item->invoice->code }} @else Old appointment @endif

يرجي التواصع معنا في حالة تعديل او الغاء الحجز

@foreach ($medicine as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'On medicine'; @endphp @elseif ($item->status == 1) @php $text_color = 'cancel-color-btn'; $msg = 'No result'; @endphp @elseif ($item->status == 2) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif @endforeach
الاسم التاريخ النهاية الحالة
{{ $item->medicinescats->name }} {{ $item->start }} {{ $item->end }} {{ $msg }}
@foreach ($treatment as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'In prog'; @endphp @elseif ($item->status == 1) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif @endforeach
Treat. ID Name Start End sessions sessions done Status
{{ $item->id }} {{ $item->treatment_cat->name }} {{ $item->start }} {{ $item->end }} {{ $item->sessions }} {{ $item->sessions_done }} {{ $msg }}
@foreach ($lab as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'Sent'; @endphp @elseif ($item->status == 1) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif @if ($item->invoice_item->invoice->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = 'Not Paid'; @endphp @elseif ($item->invoice_item->invoice->status == 1) @php $text_color_invoice = 'pend-color-btn'; $msg_invoice = 'Pending'; @endphp @elseif ($item->invoice_item->invoice->status == 2) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = 'Paid'; @endphp @endif @endforeach
Name Code Pay. Code status Created Download
{{ $item->service_item->name }} {{ $item->code }} {{ $item->invoice_item->invoice->code }} {{ $msg }} {{ date('d M Y', strtotime($item->created_at)) }} @if (!empty($item->xray_file)) Download @endif
@endsection @section('js') @endsection