@extends('dashboard.layout') @section('content')

Request Summary

ID: {{ $serviceRequest->id }}

@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300', 'in_progress' => 'bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300', 'approved' => 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300', 'cancelled' => 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300' ]; $statusLabels = [ 'pending' => 'Pending', 'in_progress' => 'In Progress', 'approved' => 'Approved', 'cancelled' => 'Cancelled' ]; @endphp {{ $statusLabels[$serviceRequest->status] }}

Package

{{ $serviceRequest->package_type }}

Total

{{ number_format($serviceRequest->total_price, 2) }} SR

Contact Information

{{ $contactInfo['name'] ?? 'N/A' }}

{{ $contactInfo['email'] ?? 'N/A' }}

{{ $contactInfo['phone'] ?? 'N/A' }}

{{ $contactInfo['company'] ?? 'N/A' }}

@if($contactInfo['email'] ?? false) Email @endif @if($contactInfo['phone'] ?? false) Call @endif

Business Information

{{ $serviceRequest->businessType->name ?? 'N/A' }}

{{ $serviceRequest->businessModel->name ?? 'N/A' }}

{{ $serviceRequest->branch->name ?? 'N/A' }}

Services Requested

{{ count($servicesData) }} services
@php $totalPrice = 0; @endphp @foreach($servicesData as $index => $service) @php $price = $service['price'] ?? 0; $totalPrice += $price; @endphp

{{ $service['name'] ?? 'Unnamed Service' }}

@if($service['description'] ?? false)

{{ $service['description'] }}

@endif
@if($price > 0) {{ number_format($price, 2) }} SR @endif
@endforeach
Services Total: {{ number_format($totalPrice, 2) }} SR
@if($totalPrice < $serviceRequest->total_price)
Other charges: {{ number_format($serviceRequest->total_price - $totalPrice, 2) }} SR
@endif

Timestamps

Created: {{ $serviceRequest->created_at->format('M j, Y') }}
Time: {{ $serviceRequest->created_at->format('g:i A') }}
Last Updated: {{ $serviceRequest->updated_at->format('M j, Y') }}
@if($serviceRequest->admin_notes)

Admin Notes

{{ $serviceRequest->admin_notes }}

@endif
Back
@endsection