@extends('layouts.app') @section('content')

Maintenance Request #{{ $maintenanceRequest->request_id }}

Edit Back to List
Request Details

{{ $maintenanceRequest->title }}

{{ $maintenanceRequest->description }}

Request Information
  • Category: {{ $maintenanceRequest->category ?? 'N/A' }}
  • Priority: @php $priorityClass = [ 'low' => 'bg-secondary', 'medium' => 'bg-warning', 'high' => 'bg-danger' ][$maintenanceRequest->priority] ?? 'bg-secondary'; @endphp {{ ucfirst($maintenanceRequest->priority ?? 'N/A') }}
  • Status: @php $statusClass = [ 'pending' => 'bg-secondary', 'in_progress' => 'bg-primary', 'completed' => 'bg-success', 'cancelled' => 'bg-danger' ][$maintenanceRequest->status] ?? 'bg-secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $maintenanceRequest->status ?? 'N/A')) }}
Location
  • Property: {{ $maintenanceRequest->property->PropName ?? 'N/A' }}
  • Block: {{ $maintenanceRequest->block->BlockName ?? 'N/A' }}
  • Unit: {{ $maintenanceRequest->unit->UnitIdentity ?? 'N/A' }}
@if($maintenanceRequest->assigned_technician_id)
Assigned Technician
{{ substr($maintenanceRequest->technician->name ?? 'T', 0, 1) }}
{{ $maintenanceRequest->technician->name ?? 'N/A' }}
Assigned on: {{ $maintenanceRequest->assigned_date ? \Carbon\Carbon::parse($maintenanceRequest->assigned_date)->format('M d, Y') : 'N/A' }}
@endif @if($maintenanceRequest->resolution_notes)
Resolution Notes
{{ $maintenanceRequest->resolution_notes }}
@endif
Customer Information
@if($maintenanceRequest->customer)
{{ substr($maintenanceRequest->customer->CustomerName, 0, 1) }}
{{ $maintenanceRequest->customer->CustomerName }}

{{ $maintenanceRequest->customer->Phone1 ?? 'N/A' }} @if($maintenanceRequest->customer->Phone2)
{{ $maintenanceRequest->customer->Phone2 }} @endif

Contact Information
  • {{ $maintenanceRequest->customer->Email ?? 'N/A' }}
  • {{ $maintenanceRequest->customer->Address1 ?? 'N/A' }}
@else

No customer information available

@endif
@if($maintenanceRequest->attachment_path)
Attachments
View Attachment {{ pathinfo($maintenanceRequest->attachment_path, PATHINFO_EXTENSION) | strtoupper }} File
@endif
Upcoming Rent Due
@if($upcomingRentDues->isEmpty())

No upcoming rent dues

@else
@foreach($upcomingRentDues as $rentDue)
{{ $rentDue->unit }}
{{ $rentDue->status }}

{{ $rentDue->dueText }}

Ksh {{ $rentDue->amount }} Pay Now
@endforeach
@endif
@if($upcomingRentDues->isNotEmpty()) @endif
@endsection