@extends('layouts.app') @section('title', 'Locker Details') @section('no-page-header') @section('content')

View and manage locker information

{{ $locker->locker_number }}

{{ ucfirst($locker->locker_type) }}

{{ ucfirst($locker->status) }}

Basic Information

Locker Number:
{{ $locker->locker_number }}
Type:
{{ ucfirst($locker->locker_type) }}
Size:
{{ ucfirst($locker->locker_size) }}
Status:
{{ ucfirst($locker->status) }}

Location

@if($locker->location)
Location:
{{ $locker->location->name }}
@if($locker->location->address)
Address:
{{ $locker->location->address }}
@endif @else
No location assigned
@endif

Customer

@if($locker->customer)
Name:
{{ $locker->customer->name }}
@if($locker->customer->email)
Email:
{{ $locker->customer->email }}
@endif @if($locker->customer->phone)
Phone:
{{ $locker->customer->phone }}
@endif @else
No customer assigned
@endif
Created: {{ $locker->created_at->format('M d, Y \a\t h:i A') }}
Last Updated: {{ $locker->updated_at->format('M d, Y \a\t h:i A') }}

Actions

@if($locker->status === 'available') @endif @if($locker->status === 'occupied')
@csrf @method('POST')
@endif Edit Details @if($locker->status !== 'occupied')
@csrf @method('DELETE')
@endif
@if($locker->lockerRegistrations->count() > 0)

Registration History

@foreach($locker->lockerRegistrations as $registration) @endforeach
Customer Start Date End Date Status Actions
{{ $registration->customer->name ?? 'N/A' }} {{ $registration->start_date->format('M d, Y') }} {{ $registration->end_date?->format('M d, Y') ?? 'Ongoing' }} {{ $registration->status }} View
@endif
@if($locker->status === 'available') @endif @endsection @push('scripts') @endpush