@extends('layouts.admin') @section('content')
@include('admin.partials.pro-hero', [ 'icon' => 'fas fa-server', 'title' => __('Hosting Management'), 'subtitle' => __('Manage all customer hosting services'), 'breadcrumbs' => [ ['label' => __('Dashboard'), 'url' => route('admin.dashboard')], ['label' => __('Hosting'), 'url' => null], ], ]) @include('includes.admin.form-error') @include('includes.admin.form-success') @if(session('success')) @endif @if(session('error')) @endif

{{ __('All Customer Hostings') }}

@forelse($hostings as $hosting) @empty @endforelse
{{ __('Customer') }} {{ __('Domain & Package') }} {{ __('Server & IP') }} {{ __('Pricing') }} {{ __('Status') }} {{ __('Options') }}
{{ strtoupper(substr($hosting->user->name ?? 'U', 0, 1)) }}
{{ $hosting->user->name ?? 'Guest' }}
{{ $hosting->user->email ?? '' }}
{{ $hosting->domain }}
{{ $hosting->plan->name ?? 'N/A' }}
{{ $hosting->ip_address ?? '0.0.0.0' }}
{{ $hosting->server->name ?? 'No Server' }}
৳ {{ number_format($hosting->amount, 2) }}
{{ $hosting->billing_cycle }}
@php $statusClass = strtolower($hosting->status); @endphp @if($statusClass === 'suspended') Suspended (ডিঅ্যাকটিভ) @elseif($statusClass === 'expired') Expired (ডিঅ্যাকটিভ) @else {{ $hosting->status }} @endif @if($hosting->next_due_date)
Due: {{ \Carbon\Carbon::parse($hosting->next_due_date)->format('d M, Y') }}
@endif
{{ __('No hostings found.') }}
@if($hostings->total() > 0 || $hostings->hasPages())
@if($hostings->total() > 0) {{ __('Showing') }} {{ $hostings->firstItem() }}–{{ $hostings->lastItem() }} {{ __('of') }} {{ $hostings->total() }} @else @endif @if($hostings->hasPages()) {{ $hostings->appends(['search' => request('search'), 'status' => request('status')])->links('pagination::bootstrap-4') }} @endif
@endif
@endsection