@if (session()->has('error'))
{{ session('error') }}
@endif
pattern-lines

{{ $propertyDetails['PropertyName'] ?? 'N/A' }}

@if(Auth::check() && Auth::user()->role_id == 1) @endif
@if(Auth::check() && in_array(Auth::user()->role_id, [1, 2]))
@if(!$isEditingDoorTimes) @else @endif
@if(!$isEditingEmail) @else @endif
@endif
In House

{{ $stats['bookings_in_house'] }}

Arrivals Today

{{ $stats['bookings_arriving_today'] }}

Rooms

{{ $stats['rooms_total'] }}

Assigned Locks

{{ $stats['assigned_locks_total'] }}

Codes

{{ $stats['codes_total'] }}

Occupancy %

{{ $stats['occupancy_percent'] }}%

@if(Auth::check() && in_array(Auth::user()->role_id, [1, 2]))
Automation
@if(!$tasks) @elseif($tasks) @if($tasks['is_active'] == 0 || !$tasks) @elseif($tasks['is_active'] == 1) @endif @endif
Deletion Script
@if($deleteTask) @if($deleteTask['is_active'] == 0) @else @endif @endif
Automation Frequency

current :: @if($tasks) {{$tasks['frequency']}} @else not set @endif

@if($tasks) @else

Click TURN ON button to add automation for this property

@endif
@if(Auth::check() && Auth::user()->role_id == 1)
Deletion Script Frequency

current :: @if($deleteTask) {{$deleteTask['frequency']}} @else not set @endif

@if($deleteTask) @endif
@endif
@endif
Details
@if ($message) @endif @if ($error) @endif
@if($todayBookingsReady)
@if(in_array($propertyDetails['API'], ['frimann','total','fritimi'])) @endif @if(Auth::check() && Auth::user()->role_id == 3) @endif @if(empty($todayBookings)) @else @foreach($todayBookings as $booking) @if(in_array($propertyDetails['API'], ['frimann','total','fritimi'])) @endif @if(Auth::check() && Auth::user()->role_id == 3) @endif @endforeach @endif
Booking ID Name Unit NumberRoom NameStart Date End Date Info PasscodeSend Passcode Passcode Code Status Card Early CheckIn
No Bookings
{{ $booking['bookId'] ?? 'N/A' }} @if(!empty($booking['guestName'])) {{ $booking['guestName'] }} @else {{ $booking['guestFirstName'] ?? 'N/A' }} @endif {{ $booking['unitName'] ?? 'N/A' }}{{ $booking['roomName'] ?? 'N/A' }}{{ $booking['firstNight'] ?? 'N/A' }} {{ $booking['lastNight'] ?? 'N/A' }} info

Name: {{ $booking['guestName'] ?? ($booking['guestFirstName'] ?? 'N/A') }}

Unit: {{ $booking['unitName'] ?? 'N/A' }}

@if(in_array($propertyDetails['API'], ['frimann','total','fritimi']))

Room: {{ $booking['roomName'] ?? 'N/A' }}

@endif

Start Date: {{ $booking['firstNight'] ?? 'N/A' }}

End Date: {{ $booking['lastNight'] ?? 'N/A' }}

{{ substr($booking['bookId'], -4) }} @if(($booking['status'] ?? '') != 'success') @if($propertyDetails['API'] == 'golf_simulator') @else @endif @else check_circle @endif @if(($booking['status'] ?? '') == 'success') {{ $booking['passcode'] }} @endif @php $status = $booking['status'] ?? 'N/A'; $color = 'red'; if ($status == 'success') { $color = 'green'; } elseif ($status == 'partial') { $color = 'yellow'; } @endphp
circle
@forelse($booking['status_details'] ?? [] as $detail) @php $dColor = 'orange'; if($detail['status'] === 'success') { $dColor = 'green'; } elseif($detail['status'] === 'failed') { $dColor = 'red'; } @endphp
circle {{ $detail['lock'] }}: {{ $detail['status'] }}
@empty No data @endforelse
@php $cardExists = \App\Models\Card::where('BookingID', $booking['bookId'])->exists(); @endphp @if($cardExists) check_circle @endif
@php $yesterday = \Carbon\Carbon::now()->subDay()->startOfDay(); $startDate = \Carbon\Carbon::parse($booking['firstNight'])->startOfDay(); @endphp
@else
Loading...

Loading today's arrivals...

@endif
@if($bookingsReady)
@if(in_array($propertyDetails['API'], ['frimann','total','fritimi'])) @endif @if(Auth::check() && Auth::user()->role_id == 3) @endif @if(empty($bookings1)) @else @foreach($bookings1 as $booking) @if(in_array($propertyDetails['API'], ['frimann','total','fritimi'])) @endif @if(Auth::check() && Auth::user()->role_id == 3) @endif @endforeach @endif
Booking ID Name Unit NumberRoom NameStart Date End Date Info PasscodeSend Passcode Passcode Code Status Card Early CheckIn
No Bookings
{{ $booking['bookId'] ?? 'N/A' }} @if(!empty($booking['guestName'])) {{ $booking['guestName'] }} @else {{ $booking['guestFirstName'] ?? 'N/A' }} @endif {{ $booking['unitName'] ?? 'N/A' }}{{ $booking['roomName'] ?? 'N/A' }}{{ $booking['firstNight'] ?? 'N/A' }} {{ $booking['lastNight'] ?? 'N/A' }} info

Name: {{ $booking['guestName'] ?? ($booking['guestFirstName'] ?? 'N/A') }}

Unit: {{ $booking['unitName'] ?? 'N/A' }}

@if(in_array($propertyDetails['API'], ['frimann','total','fritimi']))

Room: {{ $booking['roomName'] ?? 'N/A' }}

@endif

Start Date: {{ $booking['firstNight'] ?? 'N/A' }}

End Date: {{ $booking['lastNight'] ?? 'N/A' }}

{{ substr($booking['bookId'], -4) }} @if(($booking['status'] ?? '') != 'success') @if($propertyDetails['API'] == 'golf_simulator') @else @endif @else check_circle @endif @if(($booking['status'] ?? '') == 'success') {{ $booking['passcode'] }} @endif @php $status = $booking['status'] ?? 'N/A'; $color = 'red'; if ($status == 'success') { $color = 'green'; } elseif ($status == 'partial') { $color = 'yellow'; } @endphp
circle
@forelse($booking['status_details'] ?? [] as $detail) @php $dColor = 'orange'; if($detail['status'] === 'success') { $dColor = 'green'; } elseif($detail['status'] === 'failed') { $dColor = 'red'; } @endphp
circle {{ $detail['lock'] }}: {{ $detail['status'] }}
@empty No data @endforelse
@php $cardExists = \App\Models\Card::where('BookingID', $booking['bookId'])->exists(); @endphp @if($cardExists) check_circle @endif
@php $yesterday = \Carbon\Carbon::now()->subDay()->startOfDay(); $startDate = \Carbon\Carbon::parse($booking['firstNight'])->startOfDay(); @endphp
@else
Loading...

Loading bookings...

@endif
@if($locksReady)
@if(!$scienerDetailsExists)

Enter Username and Password

@else @foreach($locks as $lock) @endforeach
Lock Alias Lock Type Electric Quantity Connection Action
role_id, [1, 2, 3])) wire:click="goToLockDetails({{ $lock['lockId'] }}, {{ $PropertyID }})" @endif> {{ $lock['lockAlias'] ?? 'N/A' }} @if(Str::startsWith($lock['lockName'], 'H31')) H31 Icon brafa Hotel FP @elseif(Str::startsWith($lock['lockName'], 'LL9246')) H31 Icon brafa Hotel @elseif(Str::startsWith($lock['lockName'], 'LL747')) H31 Icon brafa Hotel @elseif(Str::startsWith($lock['lockName'], 'M302') || Str::startsWith($lock['lockName'], 'LL9274')) M302 Icon brafa ASSA @elseif(Str::startsWith($lock['lockName'], 'LL476')) H31 Icon brafa Hotel @elseif(Str::startsWith($lock['lockName'], 'S31') || Str::startsWith($lock['lockName'], 'LL9206')) S31 Icon brafa Slim @elseif(Str::startsWith($lock['lockName'], 'K3')) K3 Icon brafa Keypad K3 @elseif(Str::startsWith($lock['lockName'], 'K2')) K3 Icon brafa Keypad K2 @elseif(Str::startsWith($lock['lockName'], 'N30')) N30 Icon brafa Cylinder @elseif(Str::startsWith($lock['lockName'], 'LL80')) LL80 Icon brafa FaceID @else {{ $lock['lockName'] ?? 'N/A' }} @endif @php $batteryLevel = $lock['electricQuantity'] ?? 0; $batteryColor = 'red'; // Default color if ($batteryLevel > 35 && $batteryLevel <= 69) { $batteryColor='orange' ; } elseif ($batteryLevel> 69) { $batteryColor = 'green'; } @endphp battery_std {{ $batteryLevel }}% @if($lock['hasGateway'] == 1) wifi Online @else signal_wifi_off Offline @endif
@endif
@else
Loading...

Loading locks...

@endif
@if($guestOpeningsReady)
@forelse($unlockRecords as $record) @empty @endforelse
Name Type Lock Time
{{ $record->username }} @switch($record->recordType) @case(-4) qr_code QR Code @break @case(1) Unlock with APP @break @case(4) dialpad PIN @break @case(7) Card @break @case(8) Fingerprint @break @case(12) Unlock via network @break @case(55) Remote Unlock @break @case(67) Facial ID Unlock @break @default Unknown @endswitch {{ \App\Models\AssignedLock::getLockName($record->lockId) }} {{ date('d/m/y H:i:s', $record->lockDate / 1000) }}
No Records
{{ $unlockRecords->links() }}
@else
Loading...

Loading guest openings...

@endif
@if($assignedLocksReady)
@foreach($assignedLockColumns as $column) @if(!in_array($column, ['created_at', 'updated_at'])) @endif @endforeach @forelse($assignedLocks as $lock) @foreach($assignedLockColumns as $column) @if(!in_array($column, ['created_at', 'updated_at'])) @endif @endforeach @empty @endforelse
Room ID Info {{ ucfirst($column) }} Action
{{ $lock['RoomID'] ?? 'N/A' }} info

Id: {{ $lock['Id'] ?? 'N/A' }}

PropertyID: {{ $lock['PropertyID'] ?? 'N/A' }}

RoomName: {{ $lock['RoomName'] ?? 'N/A' }}

RoomID: {{ $lock['RoomID'] ?? 'N/A' }}

PrimaryLockID: {{ $lock['PrimaryLockID'] ?? 'N/A' }}

PrimaryLockName: {{ $lock['PrimaryLockName'] ?? 'N/A' }}

HallwayLockID: {{ $lock['HallwayLockID'] ?? 'N/A' }}

HallwayLockName: {{ $lock['HallwayLockName'] ?? 'N/A' }}

AdditionalLockID: {{ $lock['AdditionalLockID'] ?? 'N/A' }}

AdditionalLockName: {{ $lock['AdditionalLockName'] ?? 'N/A' }}

{{ $lock[$column] ?? 'N/A' }}
No assigned locks
@else
Loading...

Loading assigned locks...

@endif
@push('js') @endpush