<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <?php $__env->startSection('title'); ?>
        Plat Form Create
    <?php $__env->stopSection(); ?>


    <!-- DataTales Example -->
    <div class="row">
        <div class="col-md-7 m-auto">
            <!-- Page Heading -->
            <h1 class="h3 mb-2 text-gray-800">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Plat Form access')): ?>
                    <a href="<?php echo e(route('admin.platforms.index')); ?>" class="btn btn-primary"><i class="fas fa-plus"
                            aria-hidden="true"></i>
                        Plat Form Listing
                    </a>
                <?php endif; ?>
            </h1>
            <form action="<?php echo e(route('admin.platforms.store')); ?>" method="POST" enctype="multipart/form-data"
                class="needs-validation" role="form" novalidate>
                <?php echo csrf_field(); ?>
                <div class="card shadow mb-4">
                    <div class="card-header py-3">
                        <h6 class="m-0 font-weight-bold text-primary">Plat Form</h6>
                    </div>
                    <div class="card-body">



                        <div class="form-group">
                            <label class="mb-0" for="image">Image <span class="text-danger">*</span></label>
                            <input type="file" name="image" id="image"
                                class="mb-2 form-control <?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); ?>" />
                            <div id="showImage" style="display: none" class="mt-2">
                                <img class="img-fuild" width="150px" height="120px" id="prevImg" src="#"
                                    alt="" style="border: 1px dotted #000">
                                <?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="mb-0" for="status">Status <span class="text-danger">*</span></label>
                            <select name="status" id="status"
                                class="form-control <?php $__errorArgs = ['status'];
$__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); ?>">
                                <option value="1">Active</option>
                                <option value="0">Inactive</option>
                            </select>
                            <?php $__errorArgs = ['status'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>





                    </div>

                    <div class="card-footer text-right">
                        <button type="submit" class="btn btn-success">Save</button>
                    </div>

                </div>
            </form>
        </div>
    </div>
    <?php $__env->startSection('script'); ?>
        <script>
            $(document).ready(() => {
                // Banner Image
                $('#image').change(function() {
                    const file = this.files[0];
                    console.log(file);
                    if (file) {
                        let reader = new FileReader();
                        reader.onload = function(event) {
                            console.log(event.target.result);
                            $('#prevImg').attr('src', event.target.result);
                            $("#showImage").css('display', 'block')
                        }
                        reader.readAsDataURL(file);
                    }
                });

            });
        </script>

        <script>
            $('input[name="tags"]').amsifySuggestags({
                type: 'amsify',
                suggestions: ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupitor', 'Uranus', 'Neptune', 'Pluto'],
            });
        </script>
    <?php $__env->stopSection(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?>
<?php /**PATH /home/raj/Documents/teamprojects/kik/resources/views/admin/platform/create.blade.php ENDPATH**/ ?>