@extends('layouts.app') @section('title', 'Client Request Details') @section('page-title', 'Client Request Details') @section('content')
Client Information

{{ $clientRequest->customer_name }}

{{ $clientRequest->mobile }}

@if($clientRequest->email) {{ $clientRequest->email }} @else Not provided @endif

{{ $clientRequest->customer_type ?: 'Not specified' }}

{{ $clientRequest->connection_type ?: 'Not specified' }}

@if($clientRequest->package) {{ $clientRequest->package->name }} @if($clientRequest->package->price) (BDT{{ number_format($clientRequest->package->price, 2) }}) @endif @else No package selected @endif

{{ $clientRequest->address }}

@if($clientRequest->latitude && $clientRequest->longitude)
Latitude: {{ $clientRequest->latitude }}, Longitude: {{ $clientRequest->longitude }}
@else

Location coordinates not available

@endif
Request Status & Actions
Overall Status
@php $statusClass = match($clientRequest->status) { 'pending' => 'warning', 'processing' => 'info', 'completed' => 'success', default => 'secondary' }; @endphp {{ ucfirst($clientRequest->status) }}
OTC Status
@if($clientRequest->otc_status === 'paid') Paid @else Pending @if($clientRequest->otc_connection_charge)
BDT{{ number_format($clientRequest->otc_connection_charge, 2) }} @endif @endif
Physical Survey
@if($clientRequest->physical_connectivity === 'completed') Completed @else Pending @endif
@if($clientRequest->otc_status === 'pending') @endif @if($clientRequest->physical_connectivity === 'pending') @endif Edit Request
@if($clientRequest->notes)
Notes & Reports
{{ $clientRequest->notes }}
@endif
Assigned Users
@if($clientRequest->assignedUsers->count() > 0) @foreach($clientRequest->assignedUsers as $user)
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
@endforeach @else

No users assigned to this request

@endif
Request Information

#{{ $clientRequest->id }}

@if($clientRequest->creator) {{ $clientRequest->creator->name }} {{ $clientRequest->creator->email }} @else Unknown @endif

{{ $clientRequest->created_at->format('M d, Y h:i A') }}

{{ $clientRequest->updated_at->format('M d, Y h:i A') }}

@if($clientRequest->live_ip)

{{ $clientRequest->live_ip }}

@endif @if($clientRequest->isp_name)

{{ $clientRequest->isp_name }}

@endif
Activities Log
@if($clientRequest->activityLogs->count() > 0)
@foreach($clientRequest->activityLogs as $activity)
{{ $activity->description }}
{{ $activity->created_at->format('M d, Y h:i A') }}
User: {{ $activity->user ? $activity->user->name : 'System' }}
Action: {{ ucfirst(str_replace('_', ' ', $activity->action)) }}
@if($activity->old_values || $activity->new_values)
@if($activity->old_values)
Previous Values:
@foreach($activity->old_values as $key => $value)
{{ ucfirst(str_replace('_', ' ', $key)) }}: {{ is_array($value) ? json_encode($value) : $value }}
@endforeach
@endif @if($activity->new_values)
New Values:
@foreach($activity->new_values as $key => $value)
{{ ucfirst(str_replace('_', ' ', $key)) }}: {{ is_array($value) ? json_encode($value) : $value }}
@endforeach
@endif
@endif @if($activity->ip_address)
IP: {{ $activity->ip_address }}
@endif
@endforeach
@else

No activities logged yet.

@endif
@endsection @section('scripts') @endsection