{{ $this->apartment->towers->tower_name }}

{{ $this->apartment->floors->floor_name }}

{{ $this->visitor->visitor_name }}

{{ $this->visitor->apartment->apartment_number }}

{{ $this->visitor->in_time ? \Carbon\Carbon::parse($this->visitor->in_time)->timezone(timezone())->format('h:i A') : '--' }}

{{ $this->visitor->out_time ? \Carbon\Carbon::parse($this->visitor->out_time)->timezone(timezone())->format('h:i A') : '--' }}

{{ $this->visitor->date_of_visit ? \Carbon\Carbon::parse($this->visitor->date_of_visit)->timezone(timezone())->format('d F Y') : '--' }}

{{ $this->visitor->date_of_exit ? \Carbon\Carbon::parse($this->visitor->date_of_exit)->timezone(timezone())->format('d F Y') : '--'}}

{{ $this->visitor->purpose_of_visit ? $this->visitor->purpose_of_visit : "--"}}

{{ $this->visitor->visitorType->name ? $this->visitor->visitorType->name :'--' }}

{{ $this->visitor->address }}

{{ $this->visitor->phone_number ? $this->visitor->phone_number : "--"}}

{{ $this->visitor->user->name ?? '--'}}

@if ($this->visitor->status === 'allowed') {{ ucFirst($this->visitor->status) }} @elseif ($this->visitor->status === 'not_allowed') {{ ucFirst(str_replace('_', ' ', $this->visitor->status)) }} @else {{ ucFirst($this->visitor->status) }} @endif
@if($this->visitor->visitor_photo_url) @endif
@lang('app.print')
@lang('app.cancel')