@extends('layouts.customer') @section('title', 'Edit Template') @section('page-title', 'Edit Template') @push('styles') @endpush @section('content')
route('customer.templates.import.gallery'), "contentUrlBase" => url('/customer/templates/import'), "aiUrl" => route('customer.templates.ai-generate'), "csrfToken" => csrf_token(), "builder" => 'grapesjs', "canImport" => (bool) auth('customer')->user()?->groupAllows('templates.permissions.can_import_templates'), "canAi" => (bool) auth('customer')->user()?->groupAllows('templates.permissions.can_use_ai_creator'), "initialTab" => (bool) auth('customer')->user()?->groupAllows('templates.permissions.can_use_ai_creator') && !(bool) auth('customer')->user()?->groupAllows('templates.permissions.can_import_templates') ? 'ai' : 'templates', ]))">
@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror
is_public ? 'checked' : '' }} class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
@if(auth('customer')->user()?->groupAllows('templates.permissions.can_import_templates') || auth('customer')->user()?->groupAllows('templates.permissions.can_use_ai_creator')) @endif Cancel @customercan('templates.permissions.can_edit_templates') @endcustomercan
@if(auth('customer')->user()?->groupAllows('templates.permissions.can_import_templates') || auth('customer')->user()?->groupAllows('templates.permissions.can_use_ai_creator')) @endif
@endsection @push('scripts') @endpush