@extends('layouts.dashboard') @section('title', 'Template Assignment') @section('content')

Template Assignment

Assign global templates to client organizations

Global Templates
@if($globalTemplates->count() > 0)
Select templates to assign to a client. Clients can customize assigned templates.
@csrf
@foreach($globalTemplates as $template) @endforeach
@else

No global templates available

Create Template
@endif
Select Client
@forelse($clients as $client)
{{ strtoupper(substr($client->name, 0, 1)) }}
{{ $client->name }}
{{ $client->templates_count }} templates
@php $badgeClass = match($client->subscription_type) { 'trial' => 'bg-warning', 'basic' => 'bg-info', 'premium' => 'bg-danger', 'enterprise' => 'bg-purple', default => 'bg-secondary' }; @endphp {{ ucfirst($client->subscription_type) }} @if($client->is_active && !$client->isSubscriptionExpired()) Active @else Inactive @endif
@empty

No clients available

Create Client
@endforelse
@endsection @push('styles') @endpush @push('scripts') @endpush