<?php $__env->startSection('title', 'Yeni Tanım'); ?>

<?php $__env->startSection('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' => '']
    ];
?>

<?php $__env->startPush('styles'); ?>
    <link href="https://cdn.jsdelivr.net/npm/quill@2.0.0/dist/quill.snow.css" rel="stylesheet">
    <style>
        .quill-editor {
            background: white;
            border-radius: var(--radius-lg);
        }

        .ql-toolbar.ql-snow {
            border-top-left-radius: var(--radius-lg);
            border-top-right-radius: var(--radius-lg);
            background: var(--gray-50);
            border: 1px solid var(--gray-300);
        }

        .ql-container.ql-snow {
            border-bottom-left-radius: var(--radius-lg);
            border-bottom-right-radius: var(--radius-lg);
            min-height: 200px;
            border: 1px solid var(--gray-300);
            border-top: 0;
        }

        .form-section {
            background: white;
            border-radius: var(--radius-xl);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--gray-200);
        }

        .form-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--gray-200);
        }

        .required-indicator {
            color: var(--danger-color);
            margin-left: 4px;
        }

        .field-description {
            font-size: 0.8rem;
            color: var(--gray-500);
            margin-top: 0.25rem;
        }

        .image-preview {
            width: 120px;
            height: 120px;
            border: 2px dashed var(--gray-300);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-50);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .image-preview:hover {
            border-color: var(--primary-color);
            background: var(--primary-color) 05;
        }

        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--radius-md);
        }

        .image-preview-placeholder {
            text-align: center;
            color: var(--gray-400);
        }

        .form-check-custom {
            background: var(--gray-50);
            border-radius: var(--radius-lg);
            padding: 1rem;
            transition: all 0.3s ease;
        }

        .form-check-custom:has(.form-check-input:checked) {
            background: var(--primary-color) 10;
            border: 1px solid var(--primary-color) 30;
        }

        .field-type-text, .field-type-textarea {
            background: var(--gray-50);
        }

        .field-type-number {
            background: var(--info-color) 05;
        }

        .field-type-select {
            background: var(--warning-color) 05;
        }

        .field-type-date {
            background: var(--success-color) 05;
        }

        .field-type-boolean {
            background: var(--secondary-color) 05;
        }

        .dynamic-attributes {
            border-top: 2px solid var(--gray-200);
            padding-top: 1.5rem;
            margin-top: 1.5rem;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <form method="POST" action="<?php echo e(route('agency.definitions.store')); ?>" enctype="multipart/form-data"
              class="validate-form">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="definition_type_id" value="<?php echo e($type->id); ?>">

            <div class="row">
                <div class="col-lg-8">
                    <!-- Basic Information -->
                    <div class="form-section">
                        <h5 class="form-section-title">
                            <i class="<?php echo e($type->icon ?? 'fas fa-info-circle'); ?> me-2"></i>
                            Temel Bilgiler
                        </h5>

                        <div class="row">
                            <div class="col-md-8">
                                <div class="mb-3">
                                    <label for="name" class="form-label">
                                        <?php echo e($type->display_name); ?> Adı
                                        <span class="required-indicator">*</span>
                                    </label>
                                    <input type="text" class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                           id="name" name="name" value="<?php echo e(old('name')); ?>" required maxlength="255">
                                    <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>

                            <div class="col-md-4">
                                <div class="mb-3">
                                    <label for="sort_order" class="form-label">Sıralama</label>
                                    <input type="number" class="form-control <?php $__errorArgs = ['sort_order'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                           id="sort_order" name="sort_order" value="<?php echo e(old('sort_order', 0)); ?>" min="0">
                                    <?php $__errorArgs = ['sort_order'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                        </div>

                        <div class="mb-3">
                            <label for="description" class="form-label">Açıklama</label>
                            <div class="quill-editor" id="editor-description"></div>
                            <input type="hidden" id="description" name="description" value="<?php echo e(old('description')); ?>">
                            <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>

                    <!-- Dynamic Attributes -->
                    <?php if($attributes->count() > 0): ?>
                        <div class="form-section">
                            <h5 class="form-section-title">
                                <i class="fas fa-list-ul me-2"></i>
                                <?php echo e($type->display_name); ?> Özellikleri
                            </h5>

                            <div class="dynamic-attributes">
                                <div class="row">
                                    <?php $__currentLoopData = $attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div
                                                class="col-md-<?php echo e($attribute->field_type === 'textarea' ? '12' : '6'); ?> mb-3">
                                            <label for="attr_<?php echo e($attribute->name); ?>" class="form-label">
                                                <?php echo e($attribute->display_name); ?>

                                                <?php if($attribute->is_required): ?>
                                                    <span class="required-indicator">*</span>
                                                <?php endif; ?>
                                            </label>

                                            <?php switch($attribute->field_type):
                                                case ('text'): ?>
                                                    <input type="text"
                                                           class="form-control field-type-text <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                           id="attr_<?php echo e($attribute->name); ?>"
                                                           name="attributes[<?php echo e($attribute->name); ?>]"
                                                           value="<?php echo e(old('attributes.'.$attribute->name)); ?>"
                                                            <?php echo e($attribute->is_required ? 'required' : ''); ?>>
                                                    <?php break; ?>

                                                <?php case ('textarea'): ?>
                                                    <?php if($attribute->name === 'content'): ?>
                                                        <div class="quill-editor" id="editor_<?php echo e($attribute->name); ?>"></div>
                                                        <input type="hidden"
                                                               id="attr_<?php echo e($attribute->name); ?>"
                                                               name="attributes[<?php echo e($attribute->name); ?>]"
                                                               value="<?php echo e(old('attributes.'.$attribute->name)); ?>"
                                                               <?php echo e($attribute->is_required ? 'required' : ''); ?>>
                                                    <?php else: ?>
                                                        <textarea
                                                                class="form-control field-type-textarea <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                                id="attr_<?php echo e($attribute->name); ?>"
                                                                name="attributes[<?php echo e($attribute->name); ?>]"
                                                                rows="3"
                                                              <?php echo e($attribute->is_required ? 'required' : ''); ?>><?php echo e(old('attributes.'.$attribute->name)); ?></textarea>
                                                    <?php endif; ?>
                                                    <?php break; ?>

                                                <?php case ('number'): ?>
                                                    <input type="number"
                                                           class="form-control field-type-number <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                           id="attr_<?php echo e($attribute->name); ?>"
                                                           name="attributes[<?php echo e($attribute->name); ?>]"
                                                           value="<?php echo e(old('attributes.'.$attribute->name)); ?>"
                                                           <?php if($attribute->validation_rules): ?>
                                                               <?php $__currentLoopData = $attribute->validation_rules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rule => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                   <?php if($rule === 'min'): ?> min="<?php echo e($value); ?>" <?php endif; ?>
                                                           <?php if($rule === 'max'): ?> max="<?php echo e($value); ?>" <?php endif; ?>
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                            <?php endif; ?>
                                                            <?php echo e($attribute->is_required ? 'required' : ''); ?>>
                                                    <?php break; ?>

                                                <?php case ('date'): ?>
                                                    <input type="date"
                                                           class="form-control field-type-date <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                           id="attr_<?php echo e($attribute->name); ?>"
                                                           name="attributes[<?php echo e($attribute->name); ?>]"
                                                           value="<?php echo e(old('attributes.'.$attribute->name)); ?>"
                                                            <?php echo e($attribute->is_required ? 'required' : ''); ?>>
                                                    <?php break; ?>

                                                <?php case ('select'): ?>
                                                    <select
                                                            class="form-select field-type-select <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                            id="attr_<?php echo e($attribute->name); ?>"
                                                            name="attributes[<?php echo e($attribute->name); ?>]"
                                                            <?php echo e($attribute->is_required ? 'required' : ''); ?>>
                                                        <option value="">Seçiniz</option>
                                                        <?php if($attribute->options): ?>
                                                            <?php $__currentLoopData = $attribute->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                <option value="<?php echo e($key); ?>"
                                                                        <?php echo e(old('attributes.'.$attribute->name) == $key ? 'selected' : ''); ?>>
                                                                    <?php echo e($value); ?>

                                                                </option>
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                        <?php endif; ?>
                                                    </select>
                                                    <?php break; ?>

                                                <?php case ('boolean'): ?>
                                                    <div class="form-check-custom">
                                                        <div class="form-check">
                                                            <input
                                                                    class="form-check-input <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                                    type="checkbox"
                                                                    id="attr_<?php echo e($attribute->name); ?>"
                                                                    name="attributes[<?php echo e($attribute->name); ?>]"
                                                                    value="1"
                                                                    <?php echo e(old('attributes.'.$attribute->name, $attribute->default_value) ? 'checked' : ''); ?>>
                                                            <label class="form-check-label"
                                                                   for="attr_<?php echo e($attribute->name); ?>">
                                                                Evet
                                                            </label>
                                                        </div>
                                                    </div>
                                                    <?php break; ?>
                                            <?php endswitch; ?>

                                            <?php if($attribute->description): ?>
                                                <div class="field-description"><?php echo e($attribute->description); ?></div>
                                            <?php endif; ?>

                                            <?php $__errorArgs = ['attributes.'.$attribute->name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>

                <div class="col-lg-4">
                    <!-- Image Upload -->
                    <div class="form-section">
                        <h5 class="form-section-title">
                            <i class="fas fa-image me-2"></i>
                            Görsel
                        </h5>

                        <div class="mb-3">
                            <label for="image" class="form-label"><?php echo e($type->display_name); ?> Görseli</label>
                            <div class="image-preview" onclick="document.getElementById('image').click()">
                                <div class="image-preview-placeholder">
                                    <i class="fas fa-cloud-upload-alt fa-2x mb-2"></i>
                                    <div>Görsel Yükle</div>
                                    <small class="text-muted">JPG, PNG (Max: 2MB)</small>
                                </div>
                            </div>
                            <input type="file" class="form-control d-none <?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                   id="image" name="image" accept="image/*">
                            <?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>

                    <!-- Status Settings -->
                    <div class="form-section">
                        <h5 class="form-section-title">
                            <i class="fas fa-cog me-2"></i>
                            Durum Ayarları
                        </h5>

                        <div class="mb-3">
                            <div class="form-check-custom">
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" id="is_active" name="is_active"
                                           value="1" checked>
                                    <label class="form-check-label" for="is_active">
                                        <strong>Aktif</strong>
                                        <div class="field-description">Bu tanım aktif olarak kullanılabilir</div>
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="mb-3">
                            <div class="form-check-custom">
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" id="is_featured" name="is_featured"
                                           value="1">
                                    <label class="form-check-label" for="is_featured">
                                        <strong>Öne Çıkar</strong>
                                        <div class="field-description">Bu tanım öne çıkan tanımlar arasında gösterilir
                                        </div>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Actions -->
                    <div class="form-section">
                        <div class="d-grid gap-2">
                            <button type="submit" class="btn btn-primary">
                                <i class="fas fa-save me-2"></i>
                                Tanımı Kaydet
                            </button>
                            <a href="<?php echo e(route('agency.definitions.index', ['type' => $type->id])); ?>"
                               class="btn btn-outline-secondary">
                                <i class="fas fa-arrow-left me-2"></i>
                                Geri Dön
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
    <script src="https://cdn.jsdelivr.net/npm/quill@2.0.0/dist/quill.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            // Toolbar options for Quill
            const toolbarOptions = [
                [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
                ['bold', 'italic', 'underline', 'strike'],
                [{ 'list': 'ordered'}, { 'list': 'bullet' }],
                [{ 'color': [] }, { 'background': [] }],
                [{ 'align': [] }],
                ['link'],
                ['clean']
            ];

            // Initialize Description Editor
            const descriptionEditorEl = document.getElementById('editor-description');
            if (descriptionEditorEl) {
                const descriptionEditor = new Quill('#editor-description', {
                    theme: 'snow',
                    modules: { toolbar: toolbarOptions },
                    placeholder: 'Açıklama yazın...'
                });

                const descriptionInput = document.getElementById('description');

                // Load initial value
                if (descriptionInput.value) {
                    descriptionEditor.root.innerHTML = descriptionInput.value;
                }

                // Update hidden input on change
                descriptionEditor.on('text-change', function() {
                    descriptionInput.value = descriptionEditor.root.innerHTML;
                });
            }

            // Initialize Content Attribute Editor
            const contentEditorEl = document.getElementById('editor_content');
            if (contentEditorEl) {
                const contentEditor = new Quill('#editor_content', {
                    theme: 'snow',
                    modules: { toolbar: toolbarOptions },
                    placeholder: 'İçeriği buraya yazın...'
                });

                const contentInput = document.getElementById('attr_content');

                // Load initial value
                if (contentInput.value) {
                    contentEditor.root.innerHTML = contentInput.value;
                }

                // Update hidden input on change
                contentEditor.on('text-change', function() {
                    contentInput.value = contentEditor.root.innerHTML;
                });
            }

            // Image preview
            const imageInput = document.getElementById('image');
            const imagePreview = document.querySelector('.image-preview');

            imageInput.addEventListener('change', function (e) {
                const file = e.target.files[0];
                if (file) {
                    const reader = new FileReader();
                    reader.onload = function (e) {
                        imagePreview.innerHTML = `<img src="${e.target.result}" alt="Preview">`;
                    };
                    reader.readAsDataURL(file);
                }
            });

            // Form validation
            const form = document.querySelector('.validate-form');
            form.addEventListener('submit', function (e) {
                const requiredFields = form.querySelectorAll('[required]');
                let hasError = false;

                requiredFields.forEach(field => {
                    if (!field.value.trim()) {
                        field.classList.add('is-invalid');
                        hasError = true;
                    } else {
                        field.classList.remove('is-invalid');
                    }
                });

                if (hasError) {
                    e.preventDefault();
                    AgencyPanel.showNotification('Lütfen tüm gerekli alanları doldurun.', 'warning');

                    // Scroll to first error
                    const firstError = form.querySelector('.is-invalid');
                    if (firstError) {
                        firstError.scrollIntoView({behavior: 'smooth', block: 'center'});
                        firstError.focus();
                    }
                }
            });

            // Real-time validation
            const inputs = form.querySelectorAll('input, select, textarea');
            inputs.forEach(input => {
                input.addEventListener('blur', function () {
                    if (this.hasAttribute('required') && !this.value.trim()) {
                        this.classList.add('is-invalid');
                    } else {
                        this.classList.remove('is-invalid');
                    }
                });

                input.addEventListener('input', function () {
                    if (this.classList.contains('is-invalid') && this.value.trim()) {
                        this.classList.remove('is-invalid');
                    }
                });
            });

            // Number field validation
            const numberFields = form.querySelectorAll('input[type="number"]');
            numberFields.forEach(field => {
                field.addEventListener('input', function () {
                    const min = parseInt(this.getAttribute('min'));
                    const max = parseInt(this.getAttribute('max'));
                    const value = parseInt(this.value);

                    if (!isNaN(min) && value < min) {
                        this.setCustomValidity(`Minimum değer: ${min}`);
                    } else if (!isNaN(max) && value > max) {
                        this.setCustomValidity(`Maximum değer: ${max}`);
                    } else {
                        this.setCustomValidity('');
                    }
                });
            });

            // Auto-resize textareas
            const textareas = form.querySelectorAll('textarea');
            textareas.forEach(textarea => {
                textarea.addEventListener('input', function () {
                    this.style.height = 'auto';
                    this.style.height = this.scrollHeight + 'px';
                });
            });
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('agency.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/mehmetguruz/public_html/test/resources/views/agency/definitions/create.blade.php ENDPATH**/ ?>