@extends('uibuilder::layouts.app') @section('title', isset($config) ? 'Sửa Config' : 'Tạo Config') @section('content')

{{ isset($config) ? 'Sửa Config' : 'Tạo Config mới' }}

{{ isset($config) ? 'Cập nhật mapping tenant/domain với template' : 'Tạo mapping mới giữa tenant/domain và template' }}

@csrf @if(isset($config)) @method('PUT') @endif
@error('tenant_id')

{{ $message }}

@enderror
@error('domain_id')

{{ $message }}

@enderror

Mỗi cặp tenant/domain/component chỉ có thể có 1 config

@error('component')

{{ $message }}

@enderror
@error('template_id')

{{ $message }}

@enderror

Nhập dữ liệu cấu hình dạng JSON (text, link, màu sắc, ...)

@error('config')

{{ $message }}

@enderror
is_active ?? true) ? 'checked' : '' }} class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded">

Config này sẽ được sử dụng cho API render

Hủy
@push('scripts') @endpush @endsection