@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 }} Años)

@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->imc)

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

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

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

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

Alergias : {{ $patient->Patient->alergias }}

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

Cirugías : {{ $patient->Patient->cirugias }}

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

APP : {{ $patient->Patient->app }}

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

APF : {{ $patient->Patient->apf }}

@endisset
@forelse($historys as $history)

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

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


No hay historial clínico
@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


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