
<form action="<?php echo e(route('services.sub_services.save_element')); ?>" method="post" >
    <?php echo csrf_field(); ?>

    <input type="hidden" id="sub_services_id"  name="sub_services_id" value="<?php echo e($id_sub_services); ?>">
    <div class="row">
        <div class="col-5">
            <input type="text" id="title_en"  name="title_en"  placeholder="Element En">
           
        </div>
        <div class="col-5">
            
            <input type="text" id="title_ar"  name="title_ar" placeholder="Element Ar">
        </div>

        <div class="col-2">
            <button type="submit" class="btn btn-primary">Add</button>

        </div>

    </div>
   
    <?php if(@isset($sub_services_elements) && !@empty($sub_services_elements) && count($sub_services_elements) >0): ?> 

        <div class="col-12 row" style="margin-top: 30px">
                <table class="table">
                    <thead>
                        <th>#</th>
                        <th>Title En</th>
                        <th>Title Ar</th>
                        <th>Action</th>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $sub_services_elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=> $sub_services_element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                
                        <tr>
                            <td><?php echo e($index + 1); ?></td>
                            <td><?php echo e($sub_services_element->title_en); ?></td>
                            <td><?php echo e($sub_services_element->title_ar); ?></td>
                            <td>                   
                                 <a href="<?php echo e(route('sub_services.element.delete', $sub_services_element->id)); ?>" class="btn btn-danger btn-sm" style="margin-bottom: 10px; ">delete</a>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
                
            
        </div>

            
            
            
    <?php else: ?>
        <div class="col-12" style="margin-top: 30px">
            <div class="alert alert-primary" role="alert">
                No Elements
            </div>
        </div>
    <?php endif; ?>

   
   

</form>

  <?php /**PATH C:\xampp\htdocs\opet\resources\views/dashboard/pages/services/load_sub_servives_elements.blade.php ENDPATH**/ ?>