@extends('layouts.app') @section('title', $plan->name.' โ€” add-ons') @section('content')

{{ $plan->name }} โ€” add-ons

Optional extras this plan offers. A default is attached automatically when a service is created on this plan.

Catalog
@include('components.kpi', ['label' => 'Add-ons offered', 'value' => (string) $stats['offered'], 'variant' => 'info']) @include('components.kpi', ['label' => 'Attached by default', 'value' => (string) $stats['defaults'], 'variant' => $stats['defaults'] ? 'good' : '']) @include('components.kpi', ['label' => 'Live services with an add-on', 'value' => (string) $stats['live']])

Offered on this plan

@if ($attached->isEmpty()) @include('components.empty-state', [ 'icon' => '➕', 'title' => 'No add-ons offered', 'message' => 'Attach an add-on from the list to offer it to customers on this plan.', ]) @else @foreach ($attached as $pivot) @php $addon = $pivot->addon; @endphp @endforeach
Add-onList priceOn this planDefault
{{ $addon->name }}
{{ $addon->code }} ยท {{ $addon->type }}
{{ money($addon->price) }} {{ $pivot->price_override !== null ? money($pivot->price_override) : 'โ€”' }} @if ($pivot->price_override !== null)
override
@endif
@if ($pivot->is_default)yes @else no @endif
@csrf @method('DELETE')
@endif

Available add-ons

@foreach ($addons as $addon) @php $isAttached = $attached->has($addon->id); @endphp @endforeach
Add-onTypePriceOffer on this plan
{{ $addon->name }}
{{ $addon->code }}
{{ title_case_words($addon->type) }} {{ money($addon->price) }}
{{ $addon->billing_period }}
@if ($isAttached)
@csrf @method('PUT')
@else
@csrf
@endif
@endsection