@extends('layouts.master') @section('title') {{ $patient->name }} @endsection @section('content')

{{ $patient->name }}


@isset($patient->Patient->birthday)

{{ __('sentence.Age') }} : {{ $patient->Patient->birthday }} ({{ \Carbon\Carbon::parse($patient->Patient->birthday)->age }} Years)

@endisset @isset($patient->Patient->gender)

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

@endisset @isset($patient->Patient->phone)

{{ __('sentence.Phone') }} : {{ $patient->Patient->phone }}

@endisset @isset($patient->Patient->adress)

{{ __('sentence.Address') }} : {{ $patient->Patient->adress }}

@endisset
@isset($patient->Patient->weight)

{{ __('sentence.Weight') }} : {{ $patient->Patient->weight }} Kg

@endisset @isset($patient->Patient->height)

{{ __('sentence.Height') }} : {{ $patient->Patient->height }} cm

@endisset @isset($patient->Patient->blood)

{{ __('sentence.Blood Group') }} : {{ $patient->Patient->blood }}

@endisset
@forelse($appointments as $appointment) @empty @endforelse
Id {{ __('sentence.Date') }} {{ __('sentence.Time Slot') }} {{ __('sentence.Status') }} {{ __('sentence.Actions') }}
{{ $appointment->id }} {{ $appointment->date->format('d M Y') }} {{ $appointment->time_start }} - {{ $appointment->time_end }} @if($appointment->visited == 0) {{ __('sentence.Not Yet Visited') }} @elseif($appointment->visited == 1) {{ __('sentence.Visited') }} @else {{ __('sentence.Cancelled') }} @endif
{{ __('sentence.No appointment available') }}
@forelse($prescriptions as $prescription) @empty @endforelse
{{ __('sentence.Reference') }} {{ __('sentence.Date') }} {{ __('sentence.Actions') }}
{{ $prescription->reference }} {{ $prescription->created_at }}
{{ __('sentence.No prescription available') }}
@forelse($invoices as $invoice) @empty @endforelse
{{ __('sentence.Reference') }} {{ __('sentence.Date') }} {{ __('sentence.Amount') }} {{ __('sentence.Status') }} {{ __('sentence.Actions') }}
{{ $invoice->reference }} {{ $invoice->created_at->format('d M Y') }} {{ $invoice->Items->sum('invoice_amount')}} {{ App\Setting::get_option('currency') }} @if($invoice->payment_status == 'Unpaid') {{ __('sentence.Unpaid') }} @elseif($invoice->payment_status == 'Paid') {{ __('sentence.Paid') }} @else {{ __('sentence.Cancelled') }} @endif
{{ __('sentence.No Invoices Available') }}
@endsection @section('footer') @endsection