@extends('layouts.admin') @section('title', 'Packages') @section('content')

Packages

@forelse ($packages as $package) @empty @endforelse
Order Image Name Price Type Stock Subscription Status Servers Sales Actions
{{ $package->sort_order }} @if($package->image_path) {{ $package->name }} @else
No Image
@endif
{{ $package->name }} @if($package->isSoldOut()) SOLD OUT @endif
{{ currency_symbol(config_value('store_currency', 'GBP')) }}{{ number_format($package->price, 2) }} {{ ucfirst($package->type) }} @if($package->stock_enabled)
{{ $package->stock_remaining }} / {{ $package->stock_quantity }}
@else Unlimited @endif
@if($package->is_subscription)
{{ $package->subscription_duration_human }} {{ $package->subscription_duration }} days
@else One-time @endif
{{ $package->is_active ? 'Active' : 'Inactive' }} @if($package->servers->count() > 0)
@foreach($package->servers as $server) {{ $server->name }} @endforeach
@else All Servers @endif
{{ $package->transactions()->where('status', 'completed')->count() }}

No Packages Found

Create your first package to get started.

Create Package
@endsection @push('styles') @endpush