@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($historys as $history)

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

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


No health history was found
@endforelse
@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


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


{{ __('sentence.No prescription available') }}
@forelse($documents as $document)
@if($document->document_type != "pdf") @else @endif
{{ $document->title }}

{{ $document->note }}

Download
@empty


{{ __('sentence.No document available') }}
@endforelse
{{ __('sentence.Total With Tax') }}
{{ Collect($invoices)->sum('total_with_tax') }} {{ App\Setting::get_option('currency') }}
{{ __('sentence.Already Paid') }}
{{ Collect($invoices)->sum('deposited_amount') }} {{ App\Setting::get_option('currency') }}
{{ __('sentence.Due Balance') }}
{{ Collect($invoices)->where('payment_status','Partially Paid')->sum('due_amount') }} {{ App\Setting::get_option('currency') }}
@forelse($invoices as $invoice) @empty @endforelse
{{ __('sentence.Invoice') }} {{ __('sentence.Date') }} {{ __('sentence.Amount') }} {{ __('sentence.Status') }} {{ __('sentence.Actions') }}
{{ $invoice->reference }} {{ $invoice->total_with_tax }} {{ App\Setting::get_option('currency') }} @if($invoice->payment_status == 'Unpaid' OR $invoice->payment_status == 'Partially Paid') @endif @if($invoice->payment_status == 'Unpaid') @elseif($invoice->payment_status == 'Paid') @else @endif


{{ __('sentence.No Invoices Available') }}
@endsection @section('header') @endsection @section('footer') @endsection