

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

<?php echo Form::open(['method' => 'POST', 'route' => 'admin.company-schedules.store', 'files' => true]); ?>


<div class="row">
    <div class="col-md-12">
        <div class="card shadow mb-4">
            <div class="card-header py-3">
                <h6 class="m-0 font-weight-bold text-primary"><?php echo e(awtTrans('Add Company Schedule')); ?></h6>
            </div>
            <div class="card-body">

                <!-- <div class="row">

                    <div class="form-group col-md-12" id="all-from-years">

                        <?php echo Form::label('from_year_id', awtTrans('Choose From Year')); ?>

                        <?php echo Form::select('from_year_id', ['' => awtTrans('Choose From Year'),] + $years, null, ['class' => 'form-control']); ?>

                        <small class="text-danger"><?php echo e($errors->first('from_year_id')); ?></small>

                    </div>  

                </div>

                <div class="row">

                    <div class="form-group col-md-2">
                        <button type="button" class="btn btn-info btn-block" id="add-from-year" data-toggle="modal" data-target="#exampleModalLongFrom"><?php echo e(awtTrans('Add From Year')); ?> <i class="fas fa-plus"></i></button>
                    </div>

                </div>

                <div class="row">

                    <div class="form-group col-md-12" id="all-to-years">

                        <?php echo Form::label('to_year_id', awtTrans('Choose To Year')); ?>

                        <?php echo Form::select('to_year_id', ['' => awtTrans('Choose To Year'),] + $years, null, ['class' => 'form-control']); ?>

                        <small class="text-danger"><?php echo e($errors->first('to_year_id')); ?></small>
                        <small class="text-danger"><?php echo e($errors->first('from_year_id_more_to_year_id')); ?></small>
                        
                    </div>
                    
                </div>
                


                <div class="row">

                    <div class="form-group col-md-2">
                        <button type="button" class="btn btn-info btn-block" id="add-to-year" data-toggle="modal" data-target="#exampleModalLongTo"><?php echo e(awtTrans('Add To Year')); ?> <i class="fas fa-plus"></i></button>
                    </div>

                </div> -->


                <div class="row">

                    <div class="form-group col-md-6">
                        <?php echo Form::label('date_from', awtTrans('Date From')); ?>

                        <?php echo Form::date('date_from', null, ['class' => $errors->has('date_from') ? 'form-control is-invalid' : 'form-control']); ?>

                        <small class="text-danger"><?php echo e($errors->first('date_from')); ?></small>

                    </div>

                    <div class="form-group col-md-6">
                        <?php echo Form::label('date_to', awtTrans('Date To')); ?>

                        <?php echo Form::date('date_to', null, ['class' => $errors->has('date_to') ? 'form-control is-invalid' : 'form-control']); ?>

                        <small class="text-danger"><?php echo e($errors->first('date_to')); ?></small>

                    </div>

                </div>

                <div class="row">

                    <div class="form-group col-lg-6">
                        <?php echo Form::label('desc_ar', awtTrans('Description Arabic')); ?>

                        <?php echo Form::textarea('desc_ar', null, [ 'class' => 'form-control']); ?>

                        <small class="text-danger"><?php echo e($errors->first('desc_ar')); ?></small>
                    </div>

                    <div class="form-group col-lg-6">
                        <?php echo Form::label('desc_en', awtTrans('Description English')); ?>

                        <?php echo Form::textarea('desc_en', null, [ 'class' => 'form-control']); ?>

                        <small class="text-danger"><?php echo e($errors->first('desc_en')); ?></small>
                    </div>

                </div>
<!-- 
                <div class="row">

                    <div class="form-group col-lg-12">
                        <?php echo Form::label('photo', awtTrans('الصورة')); ?>

                        <div class="input-group">
                            <span class="input-group-btn">
                                <a id="lfm" data-input="photo" data-preview="holder" class="btn btn-secondary text-white px-4" style="border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: 0;border-bottom-left-radius: 0;">
                                    <i class="fa fa-picture-o"></i> <?php echo e(awtTrans('اختر الصورة')); ?>

                                </a>
                            </span>
                            <?php echo Form::text('photo', null, ['class' => $errors->has('photo') ? 'form-control is-invalid' : 'form-control' , 'readonly' => 'readonly']); ?>

                        </div>
                        <div class="mb-3 mt-3 d-block slider-holder" id="holder">
                            <img width="100" src="http://127.0.0.1:8000/storage/1/th.jpeg" alt="">
                        </div>
                        <small class="text-danger"><?php echo e($errors->first('photo')); ?></small>
                    </div>
                </div> -->


                <div class="row">

                    <div class="form-group col-lg-12">
                        <button type="button" class="btn btn-info btn-block" id="add-keyword"><i class="fas fa-plus"></i></button>
                    </div>
                </div>

                <div class="row" id="append-keyword">

                    <div class="row col-lg-12">


                        <div class="form-group col-lg-6">
                            <?php echo Form::label('keyword_ar', awtTrans('الكلمات المفتاحية بالعربي')); ?>

                            <?php echo Form::text('keyword_ar[]', null, [ 'class' => 'form-control']); ?>

                            <small class="text-danger"><?php echo e($errors->first('keyword_ar')); ?></small>
                        </div>

                        <div class="form-group col-lg-6">
                            <?php echo Form::label('keyword_en', awtTrans('الكلمات المفتاحية بالانجليزي')); ?>

                            <?php echo Form::text('keyword_en[]', null, [ 'class' => 'form-control']); ?>

                            <small class="text-danger"><?php echo e($errors->first('keyword_en')); ?></small>
                        </div>

                    </div>

                </div>

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


<?php echo Form::submit(awtTrans('Add Company Schedule'), ['class' => 'btn btn-success']); ?>

<a href="<?php echo e(route('admin.company-schedules.index')); ?>" class="btn btn-primary ml-2"><i class="fas fa-arrow-left  fa-sm  "></i> <?php echo e(awtTrans('Back')); ?></a>

<?php echo Form::close(); ?>


<!-- modal add from year -->
<div class="modal fade" id="exampleModalLongFrom" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <form action="<?php echo e(route('admin.add-year')); ?>" method="post" id="from-add-from-year">
            <?php echo csrf_field(); ?>
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(awtTrans('Add Year')); ?></h5>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-lg-12">

                            <div class="row">

                                <div class="form-group col-md-12">
                                    <?php echo Form::label('date', awtTrans('Date')); ?>

                                    <?php echo Form::text('date', null, ['class' => $errors->has('date') ? 'form-control is-invalid date-picker' : 'form-control date-picker' , 'id' => 'datepicker', 'placeholder'=>'YYYY']); ?>

                                    <small class="text-danger"><?php echo e($errors->first('date')); ?></small>

                                </div>

                            </div>

                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-info"><?php echo e(awtTrans('Send')); ?> <i class="fas fa-resend"></i></button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(awtTrans('إغلاق')); ?></button>
                </div>
            </div>
        </form>
    </div>
</div>

<!-- modal add from year -->
<div class="modal fade" id="exampleModalLongTo" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <form action="<?php echo e(route('admin.add-year')); ?>" method="post" id="from-add-to-year">
            <?php echo csrf_field(); ?>
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(awtTrans('Add Year')); ?></h5>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-lg-12">

                            <div class="row">

                                <div class="form-group col-md-12">
                                    <?php echo Form::label('date', awtTrans('Date')); ?>

                                    <?php echo Form::text('date', null, ['class' => $errors->has('date') ? 'form-control is-invalid date-picker' : 'form-control date-picker' , 'id' => 'datepicker', 'placeholder'=>'YYYY']); ?>

                                    <small class="text-danger"><?php echo e($errors->first('date')); ?></small>

                                </div>

                            </div>

                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-info"><?php echo e(awtTrans('Send')); ?> <i class="fas fa-resend"></i></button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo e(awtTrans('إغلاق')); ?></button>
                </div>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script src="https://cdn.ckeditor.com/4.16.1/standard/ckeditor.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment-with-locales.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/moment-hijri@2.1.2/moment-hijri.min.js"></script>
<script src="<?php echo e(asset('dashboard/js/bootstrap-hijri-datetimepicker.js?v2')); ?>"></script>
<script src="<?php echo e(asset('dashboard/forms/companies/create.js')); ?>"></script>

<script>

</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jaadara\Projects from 10-2022\alkhuraiji\resources\views/admin/company-schedules/create.blade.php ENDPATH**/ ?>