@extends('layout.master') @section('content') @php $userType = \App\Helpers\Helpers::getUserRole()->type_id ?? []; $userAccess = \App\Helpers\Helpers::getUserAccess() ?? []; $access = $userAccess['accesses'] ?? []; $menu = $_GET['menu'] ?? ''; @endphp
@if (!empty($menu) && $menu == 'estates') @else @endif {{--
--}}

{{ $resident->full_name ?? '-' }}

{{--

User Name: {{ $resident->user_name ?? '-' }}

--}}

Email: {{ $resident->email ?? '-' }}

Mobile Number: {{ $resident->contact_number ?? '-' }}

Vehicle License: @foreach ($vehicle_details ?? [] as $vehical) {{ $loop->index != 0 ? ',' : '' }}{{ $vehical->licence ?? '-' }} @endforeach

Vehicle IU: @foreach ($vehicle_details ?? [] as $vehical) {{ $loop->index != 0 ? ',' : '' }}{{ $vehical->iu ?? '-' }} @endforeach

Vehicle Count: {{ count($vehicle_details ?? []) }}

Unit No: {{ $resident->unit_number ?? '-' }}

Blk No: {{ $resident->block_number ?? '-' }}

{{--

Validity Date & Time: {{ !empty($resident->valid_to) ? date('d-M-Y h:ia', strtotime($resident->valid_to)) : '-' }}

--}}

Status: {{ !isset($resident->is_active) ? ($resident->is_active == 1 ? 'Active' : 'Inactive') : '-' }}

Vehicle Entry Information

{{-- --}}
@if (!empty($vehicle_entry) && count($vehicle_entry) > 0) @foreach ($vehicle_entry ?? [] as $vehicle) @endforeach {{-- @else --}} @endif
Entry Date/Time Vehicle License Name Mobile Visiting Unit License Plate Image
{{ !empty($vehicle->entry_time) ? date('M j, Y g.i A', strtotime($vehicle->entry_time)) : '-' }} {{ $vehicle->licence ?? '-' }} {{ $vehicle->owner_name ?? '-' }} {{ !empty($vehicle->contact_number) ? ($userType == 1 ? $vehicle->contact_number : 'XXXX' . substr($vehicle->contact_number, 4)) : '-' }} {{ $vehicle->unit_number ?? '' }} - {{ $vehicle->block_number ?? '' }} @if (!empty($vehicle->public_url)) plate image @else - @endif
No records found

Vehicle Exit Information

{{-- --}}
@if (!empty($vehicle_exit) && count($vehicle_exit) > 0) @foreach ($vehicle_exit ?? [] as $vehicle) @endforeach {{-- @else --}} @endif
Exit Date/Time Vehicle License Name Mobile Visiting Unit License Plate Image
{{ !empty($vehicle->exit_time) ? date('M j, Y g.i A', strtotime($vehicle->exit_time)) : '-' }} {{ $vehicle->licence ?? '-' }} {{ $vehicle->owner_name ?? '-' }} {{ !empty($vehicle->contact_number) ? ($userType == 1 ? $vehicle->contact_number : 'XXXX' . substr($vehicle->contact_number, 4)) : '-' }} {{ $vehicle->unit_number ?? '' }} - {{ $vehicle->block_number ?? '' }} @if (!empty($vehicle->public_url)) plate image @else - @endif
No records found
@push('scripts') @endPush @endsection