@extends('admin.layout.master') @section('content')
MEDICAMENTS SOUMIS A ENTENTE PREALABLE / SUBSTITUTION


@if (($errors->has('dateDebut')))
{{ $errors->first('dateDebut') }}
@endif @if (($errors->has('dateFin')))
{{ $errors->first('dateFin') }}
@endif {{--
@if(isset($ententeprealablesPhas)) {{-- {{ dd($ententeprealablesPhas)}} --}}
Demande(s)

{{-- @foreach ( $ententeprealablesPhas as $ententeprealable ) @isset($ententeprealable->quantite) --}} {{-- @endisset @isset($ententeprealable->prix) @endisset @endforeach --}} {{-- --}} {{--
Date MédicamentsQtéPrix GapPrestataire Bénéficiaires Répondue le Répondue par Situation RéponseFacture
--}} @foreach ( $ententeprealablesPhas as $ententeprealable ) @isset($ententeprealable->numeroEntentePrealable) @endisset @isset($ententeprealable->numeroDemandeSubstitution) @endisset @isset($ententeprealable->quantite) @endisset {{-- @isset($ententeprealable->prix) @endisset --}} @if ($etat->codeReponseEntentePrealable == 2) {{-- ajouter les boutoon accepter --}} @elseif($etat->codeReponseEntentePrealable == 9) @else @endif {{-- --}} @endforeach {{--
{{ $ententeprealable->numeroEntentePrealable }} {{ $ententeprealable->numeroDemandeSubstitution }} {{ \Carbon\Carbon::parse ($ententeprealable->dateSysteme)->format('d/m/Y- H:i')}} @isset($ententeprealable->libelleMedicament) {{ $ententeprealable->libelleMedicament }} @endisset @isset($ententeprealable->libelleSubstitut) {{ $ententeprealable->libelleSubstitut }} @endisset {{ $ententeprealable->quantite }} {{ $ententeprealable->prix }} {{ $ententeprealable->gap }} {{ $ententeprealable->prestataire }} {{ $ententeprealable->numeroBeneficiaire .' / '. $ententeprealable->beneficiaire }}
{{$ententeprealable->dateReponse}}
{{$ententeprealable->responsableAccord}}
{{$ententeprealable->reponsentEnteprealable}}
{{-- @isset($ententeprealable->numeroEntentePrealable) --}} @if ( $ententeprealable->facture == 1) @else Accepter Refuser @endif {{-- @endisset --}} {{-- @isset($ententeprealable->numeroDemandeSubstitution) Accepter Refuser @endisset --}}
{{$ententeprealable->motifRefusAssure}}
{{$ententeprealable->motifReel}}
{{$ententeprealable->facture}}
--}}

@if (($ententeprealablesPhas->count() != 0))
{{ count($ententeprealablesPhas)." Prestation(s)" }}


@else

@endif
@endif
@endsection