@extends('agency.layouts.app') @section('title', 'Yeni Tanım') @section('page_title', 'Yeni ' . $type->display_name . ' Tanımı') @php $breadcrumbs = [ ['title' => 'Dashboard', 'url' => route('agency.dashboard')], ['title' => 'Tanımlar', 'url' => route('agency.definitions.index')], ['title' => 'Yeni ' . $type->display_name, 'url' => ''] ]; @endphp @push('styles') @endpush @section('content')
@csrf
Temel Bilgiler
@error('name')
{{ $message }}
@enderror
@error('sort_order')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@if($attributes->count() > 0)
{{ $type->display_name }} Özellikleri
@foreach($attributes as $attribute)
@switch($attribute->field_type) @case('text') is_required ? 'required' : '' }}> @break @case('textarea') @if($attribute->name === 'content')
is_required ? 'required' : '' }}> @else @endif @break @case('number') validation_rules) @foreach($attribute->validation_rules as $rule => $value) @if($rule === 'min') min="{{ $value }}" @endif @if($rule === 'max') max="{{ $value }}" @endif @endforeach @endif {{ $attribute->is_required ? 'required' : '' }}> @break @case('date') is_required ? 'required' : '' }}> @break @case('select') @break @case('boolean')
name, $attribute->default_value) ? 'checked' : '' }}>
@break @endswitch @if($attribute->description)
{{ $attribute->description }}
@endif @error('attributes.'.$attribute->name)
{{ $message }}
@enderror
@endforeach
@endif
Görsel
Görsel Yükle
JPG, PNG (Max: 2MB)
@error('image')
{{ $message }}
@enderror
Durum Ayarları
Geri Dön
@endsection @push('scripts') @endpush