فهرست سرورها ایجاد سرور جدید
@if($servers->isEmpty())

هیچ سروری وجود ندارد.

ایجاد سرور جدید
@else @foreach($servers as $server) @php $statusMap = [ 'active' => ['title' => 'روشن', 'class' => 'border border-success text-success'], 'ACTIVE' => ['title' => 'روشن', 'class' => 'border border-success text-success'], 'running' => ['title' => 'روشن', 'class' => 'border border-success text-success'], 'on' => ['title' => 'روشن', 'class' => 'border border-success text-success'], 'starting' => ['title' => 'در حال روشن شدن', 'class' => 'border border-warning text-warning'], 'initializing' => ['title' => 'در حال آماده‌سازی', 'class' => 'border border-warning text-warning'], 'installing' => ['title' => 'در حال نصب', 'class' => 'border border-warning text-warning'], 'creating' => ['title' => 'در حال آماده‌سازی', 'class' => 'border border-warning text-warning'], 'pending' => ['title' => 'در حال آماده سازی', 'class' => 'border border-warning text-warning'], 'shutoff' => ['title' => 'خاموش', 'class' => 'border border-secondary text-secondary'], 'off' => ['title' => 'خاموش', 'class' => 'border border-secondary text-secondary'], 'stopped' => ['title' => 'خاموش', 'class' => 'border border-secondary text-secondary'], 'suspended' => ['title' => 'مسدود (کمبود اعتبار)', 'class' => 'border border-danger text-danger'], ]; $showStatus = isset($statusMap[$server->status]) ? $statusMap[$server->status]['title'] : 'نامشخص'; $statusClass = isset($statusMap[$server->status]) ? $statusMap[$server->status]['class'] : 'border border-secondary text-secondary'; $isActive = in_array($server->status, ['active', 'running', 'on']); $isOff = in_array($server->status, ['off', 'stopped']); $isInProgress = in_array($server->status, ['creating', 'pending', 'starting', 'initializing', 'installing']); @endphp status === 'suspended') class="server-suspended" @endif> @endforeach
# نام آی‌پی موقعیت وضعیت هزینه ساعتی تاریخ ایجاد اقدام
#{{ $loop->iteration }} {{ $server->name }} @if($server->provider === 'hetzner') Hetzner @elseif($server->provider === 'vultr') Vultr @endif @if($server->status === 'pending' || $server->status === 'creating')
در حال آماده سازی ({{ $server->progress ?? 0 }}%)
@else {{ $server->ip_address ?? '-' }} @endif
{{ $server->region ?? '-' }} {{ $showStatus }} @if($server->price_hourly_toman) {{ number_format($server->price_hourly_toman) }} تومان @else - @endif {{ $server->created_at?->diffForHumans() ?? '-' }}
@endif