<?php $__env->startSection('content'); ?>

<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">

                <div class="card card-primary">

                    
                  <div class="card-header"
                        style="
                            display:flex;
                            flex-wrap:wrap;
                            align-items:center;
                            justify-content:center;
                            gap:10px;
                            position:relative;
                            padding:15px;
                        ">

                        <!-- Title -->
                        <h3 style="
                            padding:20px;
                            font-weight:700;
                            font-size:30px;
                            padding-bottom:6px;
                            border-bottom:3px solid #a74a28;
                            margin:0;
                            text-align:center;
                            flex:1 1 100%;
                        ">
                            Children’s Science Create
                        </h3>

                        <!-- Back Button -->
                        <a href="<?php echo e(route('features.index')); ?>"
                        class="btn btn-primary"
                        style="
                            flex:0 0 auto;
                        ">
                            <i class="fas fa-arrow-left"></i> Back
                        </a>

                    </div>



                    
                    <form action="<?php echo e(route('features.store')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>

                        <div class="card-body m-3">

                            
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                       <label style="font-size:20px; font-weight:600;">Image</label>

                                        <input type="file" name="image" class="form-control" 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]); ?>
                                            <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="col-md-4">
                                    <div class="form-group">
                                       <label style="font-size:20px; font-weight:600;">Alt Text</label>

                                        <input type="text" name="alt_text" value="<?php echo e(old('alt_text')); ?>" class="form-control" placeholder="Enter Alt Text">
                                        <?php $__errorArgs = ['alt_text'];
$__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="col-md-4">
                                    <div class="form-group">
                                       <label style="font-size:20px; font-weight:600;">Title</label>

                                        <input type="text" name="title" value="<?php echo e(old('title')); ?>" class="form-control" placeholder="Enter Title">
                                        <?php $__errorArgs = ['title'];
$__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>


                            <div class="row">




                                <div class="col-md-6">
                                    <div class="form-group">
                                       <label style="font-size:20px; font-weight:600;">Author</label>

                                        <input type="text" name="author" value="<?php echo e(old('author')); ?>" class="form-control" placeholder="Enter Author">
                                        <?php $__errorArgs = ['author'];
$__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="col-md-6">
                                    <div class="form-group">
                                        <label style="font-size:20px; font-weight:600;">Book Link</label>

                                        <input type="text"
                                            name="amazon_link"
                                            value="<?php echo e(old('amazon_link', $feature->amazon_link ?? '')); ?>"
                                            class="form-control"
                                            placeholder="Enter Amazon Link">

                                        <?php $__errorArgs = ['amazon_link'];
$__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>



                            
                            <div class="row">

                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label style="font-size:20px; font-weight:600;">Priority</label>

                                        <input type="number" name="priority" value="<?php echo e(old('priority')); ?>" class="form-control" placeholder="Enter Priority (e.g. 1,2,3)">
                                        <?php $__errorArgs = ['priority'];
$__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="col-md-6">
                                    <div class="form-group">
                                        <label style="font-size:20px; font-weight:600;">Status</label>

                                        <select name="status" class="form-control">
                                            <option value="">Choose</option>
                                            <option value="1">Active</option>
                                            <option value="2">De-Active</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"><strong><?php echo e($message); ?></strong></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>
                            </div>

                        </div>
                        
                    <div class="card-footer d-flex justify-content-end">
                        <button type="submit" class="btn btn-primary">
                            <i class="fas fa-save"></i> Submit
                        </button>
                    </div>


                    </form>
                    

                </div>

            </div>
        </div>
    </div>
</section>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.dashboard', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\laragon\www\bookFire\resources\views/backend/pages/features/create.blade.php ENDPATH**/ ?>