@extends('layouts.master') @section('title', 'Lab result | Proxima - Medical Management app') @section('title-topbar', 'Lab result') @section('css') @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.lab') }} | {{ __('patientappo.lab results') }} @if ($lab->invoice_item->invoice->status == 1)
@if ($lab->status == 1) {{ __('basic.print') }} @endif {{ __('basic.edit') }}
@endif
{{ __('patientappo.lab result') }}

{{ __('basic.patient') }}

{{ $lab->patient->name }}

{{ __('basic.id') }} {{ $lab->patient->id }}

{!! QrCode::color(68, 95, 129)->size(80)->style('round')->eye('circle')->generate($lab->code) !!}

{{ $lab->code }}

{{ __('basic.name') }}

{{ $lab->service_item->name }}

{{ __('basic.branch') }}

{{ $lab->branch->name }}

{{ __('basic.created') }}

{{ date('d M Y h:i a', strtotime($lab->created_at)) }}

{{ __('patientappo.appointment date') }}

{{ date('d M Y h:i a', strtotime($lab->appointment->start_at)) }}

@if ($lab->invoice_item->invoice->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.not paid'); @endphp @elseif ($lab->invoice_item->invoice->status == 1) @php $text_color_invoice = 'pend-color-btn'; $msg_invoice = __('basic.pending'); @endphp @elseif ($lab->invoice_item->invoice->status == 2) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.paid'); @endphp @endif
{{ __('basic.payment status') }}
{{ $msg_invoice }}
{{ __('basic.payment code') }}

{{ $lab->invoice_item->invoice->code }}

@if (!empty($lab->xray_file))
{{ __('basic.download') }} @else
No File Uploaded yet @endif

@if ($lab->status == 0) @php $text_color = 'cancel-color-btn'; $msg = 'Not Done'; @endphp @elseif ($lab->status == 1) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif
{{ __('basic.status') }}
{{ $msg }}
{{ __('basic.responsible doctor') }}

@isset($lab->doctor->name) {{ $lab->doctor->name }} @endisset


{{ $lab->note_doctor }}
{{ $lab->note_lab }}
@endsection @section('js') @endsection