File: /var/www/html/spion/storage/framework/views/378760d8d5dbbeecc738944ca3e5071e.php
<?php $__env->startSection('title', 'Dashboard'); ?>
<?php $__env->startSection('content_header'); ?>
<h1>Template</h1>
<small>Manage Template</small>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="card card-dark">
<div class="card-header">
<h3 class="card-title">Add Template</h3>
</div>
<form method="POST" id="add_template" role="form" action="<?php echo e(route('template.store')); ?>" class="jqueryValidation"
enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<div class="card-body">
<div class="form-group">
<label for="image">Image</label>
<input type="file" class="form-control" id="image" name="image" placeholder=""
required><?php echo e(old('image')); ?></input>
</div>
<div class="form-group">
<label for="screenshots_image">Screenshots Image</label>
<input type="file" class="form-control" id="screenshots_image" name="screenshots_image[]" multiple>
</div>
<div class="form-group">
<label for="title">Title</label>
<?php if (isset($component)) { $__componentOriginale5d826ae10df3aa87f8449f474c11664 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale5d826ae10df3aa87f8449f474c11664 = $attributes; } ?>
<?php $component = JeroenNoten\LaravelAdminLte\View\Components\Form\Input::resolve(['id' => 'title','name' => 'title'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('adminlte-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(JeroenNoten\LaravelAdminLte\View\Components\Form\Input::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'form-control','placeholder' => 'Enter title','value' => ''.e(old('title')).'','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale5d826ae10df3aa87f8449f474c11664)): ?>
<?php $attributes = $__attributesOriginale5d826ae10df3aa87f8449f474c11664; ?>
<?php unset($__attributesOriginale5d826ae10df3aa87f8449f474c11664); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale5d826ae10df3aa87f8449f474c11664)): ?>
<?php $component = $__componentOriginale5d826ae10df3aa87f8449f474c11664; ?>
<?php unset($__componentOriginale5d826ae10df3aa87f8449f474c11664); ?>
<?php endif; ?>
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea type="text" class="form-control" id="description" name="description" placeholder="Enter description"
required><?php echo e(old('description')); ?></textarea>
</div>
<div class= "form-group">
<label for="tags">Tags</label>
<select name="tags[]" id="tags" class="form-control select2" multiple required>
<!-- Dynamic options can be added here if necessary -->
</select>
</div>
<div class="form-group">
<div class= "row">
<div class="col-md-6">
<label for="features">Features</label>
<div id="features-wrapper">
<div class="input-group mb-3 feature-field">
<input type="text" name="features[]" class="form-control" placeholder="Enter a feature" required>
<button type="button" class="btn btn-dark btn-add-feature">Add More</button>
</div>
</div>
</div>
<div class="col-md-6">
<label for="industry">Industry</label>
<select name="industry_id" id="industry" class="form-control" required>
<option value="">Please select Industry</option>
<?php $__currentLoopData = $industries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $industry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($industry->id); ?>"><?php echo e($industry->title); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-6">
<label for="status">Status</label>
<select class="form-control" name="status" id="">
<option value="<?php echo e(App\Models\Plan::INACTIVE); ?>">InActive</option>
<option value="<?php echo e(App\Models\Plan::ACTIVE); ?>" selected>Active</option>
</select>
</div>
<div class="col-md-6">
<input type="checkbox" id="is_test" name="is_test" value="1" checked
<?php echo e(old('is_test') == 'on' ? 'checked' : ''); ?>>
<label for="is_test">Is Test</label>
</div>
</div>
</div>
<div class="card-footer d-flex justify-content-end">
<a href="<?php echo e(route('template.index')); ?>" class="btn btn-danger mx-1">Cancel</a>
<button type="submit" class="btn btn-dark mx-1">Submit</button>
</div>
</form>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"
integrity="sha512-2ImtlRlf2VVmiGZsjm9bEyhjGW4dU7B6TNwh/hx/iSByxNENtj3WVE6o/9Lj4TJeVXPi4bnOIMXFIJJAeufa0A=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('js'); ?>
<script>
$(document).ready(function() {
$("#tags").select2({
tags: true,
placeholder: 'Select tags',
allowClear: true
});
$(document).on('click', '.btn-add-feature', function () {
// alert(543);
let featureField = `
<div class="input-group mb-3 feature-field">
<input type="text" name="features[]" class="form-control" placeholder="Enter a feature" required>
<button type="button" class="btn btn-danger btn-remove-feature">Remove</button>
</div>`;
$('#features-wrapper').append(featureField);
});
$(document).on('click', '.btn-remove-feature', function () {
$(this).closest('.feature-field').remove();
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/spion/resources/views/admin/template/create.blade.php ENDPATH**/ ?>