@include('includes.header')

Registre des stationnements

@if(Auth::user()->admin == 1)
@endif @include('includes.toast', ['msg' => $msg])

@if(Auth::user()->admin == 1)@endif @if(Auth::user()->admin == 1)@endif @if(Auth::user()->admin == 1) @endif @foreach ($stationnements as $stationnement) @if(Auth::user()->admin == 1) @endif @if(Auth::user()->admin == 1) @endif @if(Auth::user()->admin == 1) @endif @endforeach
# UnitéPropriétairesLocataires
{{ $stationnement->numero }}
@if(!empty($stationnement->unite_id))
{{ $stationnement->unite_id }}
@else N/A @endif
@php $query = DB::table('registreprivatif') ->join('stationnements', 'stationnements.unite_id', '=', 'registreprivatif.unite_id') ->where('registreprivatif.copropriete_id', Auth::user()->copropriete_active) ->where('stationnements.numero', $stationnement->numero) ->get(); @endphp @foreach(json_decode($query) as $key => $tenants) @foreach(json_decode($tenants->tenants) as $key => $tenants) @if(strpos($key, "proprio") !== false) @if(!empty($tenants->nom)) {{ $tenants->nom }} @if(Auth::user()->admin == 1) @if(!empty($tenants->telephone))@endif @if(!empty($tenants->courriel))@endif @endif @endif
@endif @endforeach @endforeach @if(empty($stationnement->unite_id)) {{ json_decode($stationnement->proprio_ext)->proprio1->nom }} @if(!empty(json_decode($stationnement->proprio_ext)->proprio1->telephone))@endif @if(!empty(json_decode($stationnement->proprio_ext)->proprio1->courriel))@endif @endif
@foreach(json_decode($query) as $key => $tenants) @foreach(json_decode($tenants->tenants) as $key => $tenants) @if(strpos($key, "locataire") !== false) @if(!empty($tenants->nom)) {{ $tenants->nom }} @if(!empty($tenants->telephone))@endif @if(!empty($tenants->courriel)) @endif @endif
@endif @endforeach @endforeach
@include('widgets.newStationnement') @foreach ($stationnements as $stationnement) @include('widgets.editStationnement', ['id' => $stationnement->id, 'numero' => $stationnement->numero, 'unite_id' => $stationnement->unite_id]) @endforeach @include('includes.footer')