@if(Auth::user()->admin !== 1) {{ Auth::logout() }} @endif @include('includes.header')

Registre des chauffe-eaux

@include('includes.toast', ['msg' => $msg])

@if(Auth::user()->admin == 1) @endif @foreach ($registreprivatif as $registre) @if(Auth::user()->admin == 1) @endif @endforeach
Unités Propriétaires Date d'expiration Statut
#{{ $registre->unite_id }}
@foreach(json_decode($registre->tenants) as $key => $tenants) @if(strpos($key, "proprio") !== false) @if(!empty($tenants->nom)) {{ $tenants->nom }} @if(!empty($tenants->telephone))@endif @if(!empty($tenants->courriel))@endif @endif
@endif @endforeach
@if(!empty($registre->expiration)) {{ $registre->expiration }} @else N/A @endif @if(is_null($registre->file) || is_null($registre->expiration))
Preuve manquante
@elseif($registre->expiration < Carbon\Carbon::now())
Échue
@elseif($registre->expiration > Carbon\Carbon::now())
En règle
@endif
@foreach ($registreprivatif as $registre) @include('widgets.editChauffeEaux', ['id' => $registre->unite_id, 'chauffeaux_id' => $registre->chauffeaux_id, 'tenants' => $registre->tenants, 'correspondance' => json_decode($registre->correspondance)]) @endforeach @include('includes.footer')