@include('includes.header')

Registre des unités privatives

@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 @if(Auth::user()->admin == 1)@endif @if(Auth::user()->admin == 1) @endif @foreach ($registreprivatif as $registre) @if(Auth::user()->admin == 1) @endif @if(Auth::user()->admin == 1) @endif @if(Auth::user()->admin == 1) @endif @endforeach
UnitésPropriétairesLocatairesTéléphonesCourrielsRangements Stationnements
{{ $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
@foreach(json_decode($registre->tenants) as $key => $tenants) @php $i = 0; @endphp @if(strpos($key, "locataire") !== false) @php $i++; @endphp @if(!empty($tenants->nom)) {{ $tenants->nom }} @if(!empty($tenants->telephone))@endif @if(!empty($tenants->courriel))@endif @endif
@endif @endforeach
@php $i = 0; @endphp @foreach(json_decode($registre->tenants) as $key => $tenants) @if(isset($tenants->telephone)) @php $i++; $format_phone = substr($tenants->telephone, -10, -7) . "-" .substr($tenants->telephone, -7, -4) . "-" .substr($tenants->telephone, -4); @endphp {{ $format_phone }} @if($i > 0)
@endif @endif @endforeach
@php $i = 0; @endphp @foreach(json_decode($registre->tenants) as $key => $tenants) @if(isset($tenants->courriel)) @php $i++; @endphp {{ $tenants->courriel }} @if($i > 0)
@endif @endif @endforeach
@foreach($rangements as $rangement) @if($rangement->unite_id == $registre->unite_id)
#{{ $rangement->numero }}
@endif @endforeach
@foreach($stationnements as $stationnement) @if($stationnement->unite_id == $registre->unite_id)
{{ $stationnement->numero }}
@endif @endforeach
@include('widgets.newUnite') @include('includes.footer')