@extends('layouts.admin') @section('content')
@include('admin.partials.pro-hero', [ 'icon' => 'fas fa-box-open', 'title' => __('Hosting Plans'), 'subtitle' => __('Manage hosting packages and pricing'), 'breadcrumbs' => [ ['label' => __('Dashboard'), 'url' => route('admin.dashboard')], ['label' => __('Hosting Management'), 'url' => null], ['label' => __('Plans'), 'url' => null], ], 'action' => [ 'type' => 'modal', 'label' => __('Create New Package'), 'icon' => 'fas fa-plus', 'modal_target' => '#addPlanModal', ], ]) @include('includes.admin.form-error') @include('includes.admin.form-success')

{{ __('Package List') }}

@foreach($plans as $plan) @php $rawExtensions = $plan->free_domain_extensions; $allowedIds = []; if (is_array($rawExtensions)) { $allowedIds = $rawExtensions; } elseif (is_string($rawExtensions)) { $decoded = json_decode($rawExtensions, true); if (is_array($decoded)) { $allowedIds = $decoded; } } @endphp @endforeach
{{ __('Package Name') }} {{ __('Category') }} {{ __('Free Domain') }} {{ __('Price') }} {{ __('Server') }} {{ __('Options') }}
{{ $plan->name }}
WHM: {{ $plan->whm_package_name }}
{{ $plan->category }} @if($plan->free_domain) @php $names = $extensions->whereIn('id', $allowedIds)->pluck('extension')->implode(', '); @endphp Yes @else No @endif
৳ {{ number_format((float) $plan->price_yearly, 0) }} /yr
@if((float) $plan->price_monthly > 0) ৳ {{ number_format((float) $plan->price_monthly, 0) }} /mo @else মাসিক সেট নেই @endif
{{ $plan->server->name ?? 'N/A' }}
@endsection @section('styles') @endsection @section('scripts') @endsection