@php $justify_style = 'justify-content-end'; $show_filter = false; if ( !empty($filter_estate_id) || !empty($filter_resident_id) || !empty($filter_visitor_model) || !empty($filter_visitor_blk_no) || !empty($filter_visitor_unit_no) || !empty($filter_visitor_license) || !empty($filtered_entry_date) || !empty($filtered_exit_date) ) { $justify_style = 'justify-content-between'; $show_filter = true; } $resident_name = $estate_name = null; if (!empty($estate_name_list) && count($estate_name_list) > 0 && !empty($filter_estate_id)) { foreach ($estate_name_list as $estate) { if ($estate->value == $filter_estate_id) { $estate_name = $estate->label; break; } } } if (!empty($residents_name_list) && count($residents_name_list) > 0 && !empty($filter_resident_id)) { foreach ($residents_name_list as $resident) { if ($resident->value == $filter_resident_id) { $resident_name = $resident->label; break; } } } @endphp
{{-- --}}
{{-- @if (!empty($estate_details->id)) @if (!empty($over_stayers) && $over_stayers == 1) View All Visitors @else View Over Stayers @endif @else @if (!empty($over_stayers) && $over_stayers == 1) View All Visitors @else View Over Stayers @endif @endif --}}
@if ($show_filter)
Results filtered by @if (!empty($filter_estate_id))
Estate: {{ $estate_name ?? '-' }}
@endif @if (!empty($filter_resident_id))
Resident: {{ $resident_name ?? '-' }}
@endif @if (!empty($filter_visitor_license))
Vehicle License: {{ $filter_visitor_license ?? '-' }}
@endif @if (!empty($filter_visitor_model))
Make /Model: {{ $filter_visitor_model ?? '-' }}
@endif @if (!empty($filtered_entry_date))
Entry Date: {{ $filtered_entry_date ?? '-' }}
@endif @if (!empty($filtered_exit_date))
Exit Date: {{ $filtered_exit_date ?? '-' }}
@endif @if (!empty($filter_visitor_blk_no))
Blk No: {{ $filter_visitor_blk_no ?? '-' }}
@endif @if (!empty($filter_visitor_unit_no))
Unit No: {{ $filter_visitor_unit_no ?? '-' }}
@endif
@endif
{{-- --}} @if (!empty($menu) && $menu == 'visitors') @else @endif @if (!empty($visitors_list) && count($visitors_list) > 0) @foreach ($visitors_list as $visitor) {{-- --}} {{-- --}} @if (!empty($menu) && $menu == 'visitors') @else @endif @endforeach {{-- @else --}} @endif
Vehicle ID Entry Date/Time Exit Date/Time Validity Until Contact No.Resident /Estate NameResidentVehicle License Vehicle IU Vehicle Make/Model Bik Number Visiting Unit Action
{{ str_pad($loop->index + 1, 3, '0', STR_PAD_LEFT) }} {{ !empty($visitor->entry_time) ? date('M j, Y g.i A', strtotime($visitor->entry_time)) : '-' }} {{ !empty($visitor->exit_time) ? date('M j, Y g.i A', strtotime($visitor->exit_time)) : '-' }} {{ !empty($visitor->valid_to) ? date('M j, Y g.i A', strtotime($visitor->valid_to)) : '-' }} @if ($visitor->valid_to < Carbon\Carbon::now()) @else - @endif {{ $visitor->contact_number ?? '-' }}{{ $visitor->resident_name ?? '-' }}{{ $visitor->estate_name ?? '' }} {{ $visitor->resident_name ?? '-' }} {{ $visitor->licence ?? '-' }} {{ $visitor->iu ?? '-' }} {{ $visitor->model ?? '-' }} {{ $visitor->block_number ?? '-' }} {{ $visitor->unit_number ?? '-' }}
No records found