@extends('layouts.app') @section('btn')
Status: {{--@if($analysis->status == "pending") @elseif($analysis->status == "draft") Brouillon @elseif($analysis->status == \App\Enums\AnalysisStatus::PAID->value) Facturé & Payé @else -- @endif --}} {{$analysis->process_status}}
@endsection @php $price_of_b = optional(optional($analysis->patientCare)->careInstitution)->price_of_b ?? \App\Models\Agency::first()->price_of_b; @endphp @section('content')

  • Nom du patient
    {{$analysis->patient->first_name}} {{$analysis->patient->last_name}}
  • Téléphone
    {{$analysis->patient->country_code_phone}} {{$analysis->patient->phone}}
  • Whatsapp
    {{$analysis->patient->country_code_whatsapp}} {{$analysis->patient->whatsapp}}
  • Email
    {{$analysis->patient->email}}
  • Adresse
    {{$analysis->patient->primary_address}}
  • Médecin prescripteur
    {{optional($analysis->prescriber)->first_name}} {{optional($analysis->prescriber)->last_name}}
  • Bulletin d'analyse
    @if($analysis->analysis_report) Voir le document @else Ajouter un document @endif
  • Prise en charge
    @if($analysis->pec) Voir la prise en charge @else Ajouter une prise en charge @endif
  • Action
  • {{-- Modifier --}} @can('delete', $analysis) @if($deleteAnalyse == "yes") Supprimer @else Supprimer le dossier @endif @endcan
Liste des paramètre d'analyse demandés du patient
@can('create', \App\Models\PatientAnalyse::class) Ajouter un dossier @endcan
@foreach($analysis->patientAnalyses as $pat) @endforeach
IID Nom du paramètre Prix Délibération Status Action
{{$pat->id}} {{$pat->analyseType->name}} {{formatpriceth($pat->analyseType->getPrice($price_of_b), getCurrency())}} {{$pat->delivery_date}} {{$pat->status}}
Sous Total

{{formatpriceth($analysis->sub_total, getCurrency())}}

Appliquer une prise en charge
Prise en charge @if($analysis->rate > 0) {{$analysis->rate}}% @endif

{{formatpriceth($analysis->discount, getCurrency())}}

Montant à paye

{{formatpriceth($analysis->total, getCurrency())}}

@if($analysis->status === \App\Enums\AnalysisStatus::PAID->value) @can('create', \App\Models\Invoice::class) @isset($analysis) Generer facture @endisset @endcan @else @can('create', \App\Models\Invoice::class)
@csrf @foreach($paymentMethods as $value => $label) @endforeach
@endcan @endif
{{-- --}} {{-- --}} @endsection @section('scripts') @include('layouts.plugins.scripts.datatable') @endsection