@extends('root') @section('title', 'Edit Package') @section('content')
@include('components.breadcrumb', [ 'title' => 'Edit Package', 'links' => [ ['url' => route('admin.dashboard'), 'label' => 'Dashboard'], ['url' => route('admin.packages.index'), 'label' => 'Packages'], ], 'current' => $package->name ])
Edit Package: {{ $package->name }}
@csrf @method('PUT')
is_active ? 'checked' : '' }}>

@php $enabledFeatures = $package->features->pluck('feature_code')->toArray(); $packageQuotas = $package->quotas->keyBy('quota_code'); @endphp
Features
@foreach($featureCodes as $code => $label)
@endforeach

Quotas
@foreach($quotaCodes as $code => $label) @php $currentLimit = $packageQuotas[$code]->quota_limit ?? -1; @endphp
-1 = Unlimited
@endforeach

Cancel
Assigned Clients

{{ $package->clientPackages->count() }} clients using this package

@if($package->clientPackages->count() > 0)
Changes will affect all assigned clients
@endif
Feature Codes Reference
  • max_agents - Custom agent limit
  • unlimited_ai_agents - Unlimited AI agents
  • unlimited_inboxes - Unlimited inboxes
  • custom_ai_prompt - Custom AI prompts
  • advanced_ai_model - GPT-4 access
  • open_api - Open API access
@endsection @push('scripts') @endpush