@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 {{--
--}}

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

Mobile Number: {{ $visitor->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: {{ $visitor->unit_number ?? '-' }}

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

Estate Name: {{ $visitor->estate_name ?? '-' }}

Resident Name: {{ $visitor->resident_name ?? '-' }}

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

@if ($visitor->created_by == auth()->id()) @endif

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