@extends('layouts.sidebar') @section('title', 'Nomadic - Modification Detail') @section('content')

Modification #{{ $mod->id }}

@if(session('success')) @endif @if(session('error')) @endif
Modification Details
  • Booking ID {{ $mod->booking_id }}
  • Status @if($mod->status === 'pending') Pending @elseif($mod->status === 'approved') Approved @elseif($mod->status === 'declined') Declined @else Expired @endif
  • Initiated By {{ $initiator ? ($initiator->fname . ' ' . $initiator->lname) : 'Unknown' }} ({{ ucfirst($mod->initiator_type) }})
  • Points Delta {{ $mod->points_delta > 0 ? '+' : '' }}{{ $mod->points_delta }}
  • Expires {{ $mod->expires_at ? \Carbon\Carbon::parse($mod->expires_at)->format('M d, Y H:i') : '-' }}
  • @if($mod->decline_reason)
  • Decline Reason {{ $mod->decline_reason }}
  • @endif @if($approver)
  • Approved By {{ $approver->fname }} {{ $approver->lname }}
  • @endif
Proposed Changes
@foreach($mod->changes as $field => $value) @endforeach
FieldNew Value
{{ ucwords(str_replace('_', ' ', $field)) }} {{ is_array($value) ? json_encode($value) : $value }}
Current Booking
@if($master)
  • Member {{ $member ? ($member->fname . ' ' . $member->lname) : 'Unknown' }}
  • Dates {{ $master->start_date }} to {{ $master->end_date }}
  • Time {{ substr($master->start_time, 0, 5) }} - {{ substr($master->end_time, 0, 5) }}
  • Total Points {{ $master->total_points }}
@else

Booking not found.

@endif
@if($mod->status === 'pending')
Actions
@csrf
@csrf
@endif @if($unavailabilities->isNotEmpty())
Resource Unavailability
@foreach($unavailabilities as $ua) @endforeach
TypeResource IDReasonResolution
{{ ucwords(str_replace('_', ' ', $ua->resource_type)) }} {{ $ua->resource_id }} {{ $ua->reason ?? '-' }} {{ ucfirst(str_replace('_', ' ', $ua->resolution)) }}
@endif
@endsection