@extends('layouts.master') @section('title') {{ $patient->name }} @endsection @section('content')
Medical Dashboard
{{ __('sentence.personal information') }}

{{ __('sentence.patientName') }} : {{ ucwords(strtolower($patient->name)) }}
{{ __('sentence.Birthday') }} : {{ \Carbon\Carbon::parse($patient->Patient->birthday)->translatedFormat('j \d\e F \d\e Y') }}
{{ __('sentence.Age') }}: {{ \Carbon\Carbon::parse($patient->Patient->birthday)->age }} {{ __('sentence.Years') }}
{{ __('sentence.Phone') }} : {{ $patient->Patient->phone }}
{{ __('sentence.patientMail') }} : {{ $patient->email }}
{{ __('sentence.Address') }} : {{ $patient->Patient->adress }}
{{ __('sentence.medical record') }}

{{ __('sentence.Weight') }}

{{ $patient->Patient->weight }} lbs

{{ __('sentence.Patient Height') }}

{{ $patient->Patient->height }}

{{ __('sentence.BMI') }}

{{ $patient->Patient->imc }}

{{ __('sentence.Blood Group') }}

{{ $patient->Patient->blood }}

{{ __('sentence.Gender') }}

{{ __('sentence.' . $patient->Patient->gender) }}

{{ __('sentence.Smoker') }}

Si
@forelse($historys as $history)

{!! clean($history->title) !!} - {{ $history->created_at }}

{!! clean($history->note) !!}
@empty


No hay historial clínico
@endforelse
@if(!empty($patient->Patient->alergias)) {{ __('sentence.allergies') }}
{!! $patient->Patient->alergias !!} @endif @if(!empty($patient->Patient->cirugias)) {{ __('sentence.surgery history') }} {!! $patient->Patient->cirugias !!} @endif @if(!empty($patient->Patient->apf)) {{ __('sentence.Chronic diseases') }} {!! $patient->Patient->apf !!} @endif
@forelse($appointments as $appointment) @empty @endforelse
Id {{ __('sentence.Date') }} {{ __('sentence.Time Slot') }} {{ __('sentence.Status') }} {{ __('sentence.Actions') }}
{{ $appointment->id }} @if($appointment->visited == 0) @elseif($appointment->visited == 1) @else @endif


No hay citas
@forelse($prescriptions as $prescription) @empty @endforelse
{{ __('sentence.Reference') }} {{ __('sentence.Content') }} {{ __('sentence.Created at') }} {{ __('sentence.Actions') }}
{{ $prescription->reference }}


No hay recetas
@forelse($documents as $document)
@if($document->document_type != "pdf") @else @endif
{{ $document->title }}

{{ $document->note }}

Descargar
@empty


No hay documentos
@endforelse
Total con IVA
{{ App\Setting::get_option('currency') }} {{ Collect($invoices)->sum('total_with_tax') }}
Pagado
{{ App\Setting::get_option('currency') }} {{ Collect($invoices)->sum('deposited_amount') }}
Deuda
{{ App\Setting::get_option('currency') }} {{ Collect($invoices)->where('payment_status', 'Partially Paid')->sum('due_amount') }}
@forelse($invoices as $invoice) @empty @endforelse
{{ __('sentence.Invoice') }} {{ __('sentence.Date') }} {{ __('sentence.Amount') }} {{ __('sentence.Status') }} {{ __('sentence.Actions') }}
{{ $invoice->reference }} {{ App\Setting::get_option('currency') }} {{ $invoice->total_with_tax }} @if($invoice->payment_status == 'Unpaid' or $invoice->payment_status == 'Partially Paid') @endif @if($invoice->payment_status == 'Unpaid') @elseif($invoice->payment_status == 'Paid') @else @endif


No hay facturas
@endsection @section('header') @endsection @section('footer') @endsection