@extends('layout.app') @section('content')
@if(auth()->user()->isTraitant()) Mes @endif Hospitalisations ({{ $datas->count() }})   Ajouter

{{-- --}} {{-- --}} @foreach($datas as $data) @if(!$data->datetimeto) {{-- --}} {{-- --}} @else {{-- --}} {{-- --}} @endif @endforeach
Durée Chambre Patient Professionnel en charge Pathologie Diagnostic Fichiers Type Maladie / Gène Temperature Tension Etat Actuel Total FactureVerdict Actions
{{ $data->datetimefrom->translatedFormat('D d M Y à H:i') }} {{ $data->room->name }} {{ $data->room->department?' - '.$data->room->department->name:'' }} {{ $data->patient->name }} {{ $data->user->name }}{{ $data->patient->pathology }}Voir Voir {{ $data->typeintervention->name }} {{ $data->trouble->name }} {{ $data->temperature }} C {{ $data->tension }} mmHg {{ $data->status->name }}{{ $data->verdict->name }} @if($data->invoice()) {{ number_format($data->invoice()->total, 0, '', ' ') }} {!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!}
@if(auth()->user()->isAdmin()) remise -{{ $data->invoice()->discount }} {!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!} @else remise -{{ $data->invoice()->discount }} {!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!} @endif @endif
@if($data->invoice()) @endif @if(!auth()->user()->isSecretary()) @if(!auth()->user()->isTraitant()) @endif @endif
@include('invoice.partials.payment-modal') @endsection @push('scripts') @endpush