@extends('client.layouts.main') @section('title', 'Service Details') @section('content')
Service Information
Product

{{ $service->product?->name ?? 'N/A' }}

Status

@php $statusColors = [ 'active' => 'success', 'pending' => 'warning', 'suspended' => 'danger', 'terminated' => 'default', 'cancelled' => 'default', ]; @endphp {{ ucfirst($service->status) }}

@if($service->domain)
Domain

{{ $service->domain }}

@endif
Billing Cycle

{{ $service->billingCycle?->name ?? '-' }}

Renewal Price

{{ $service->renewal_price ? number_format($service->renewal_price, 2) : '-' }}

Registration Date

{{ $service->registration_date?->format('M d, Y') ?? '-' }}

Next Due Date

{{ $service->next_due_date?->format('M d, Y') ?? '-' }}

@if($service->cancel_requested)
Cancellation Requested

Type: {{ ucfirst(str_replace('_', ' ', $service->cancel_type ?? 'N/A')) }}

Requested: {{ $service->cancel_request_date?->format('M d, Y H:i') ?? 'N/A' }}

@if($service->suspension_reason)

Reason: {{ $service->suspension_reason }}

@endif
@elseif(in_array($service->status, ['active', 'suspended']))
Request Cancellation
@csrf
@endif
@endsection