<?php if(Session::has('message-carousel')): ?>
							<div class="alert <?php echo e(Session::get('alert-class')); ?> alert-dismissible" role="alert">
								<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
							 	<p><?php echo e(Session::get('message-carousel')); ?></p>
							</div>
						<?php endif; ?>

            <div class="table-responsive">
			    		<table id="carouselTable" class="table table-hover">
						    <thead>
							    <tr>
							    	<th class="text-center">#</th>
							        <th class="text-center"><?php echo app('translator')->getFromJson('backend.image'); ?></th>
                      <?php $__currentLoopData = config('translatable.locales'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(count(config('translatable.locales')) > 1): ?>
                          <th class="text-center"><?php echo app('translator')->getFromJson('backend.caption'); ?> [<?php echo e($language); ?>]</th>
                        <?php else: ?>
                          <th class="text-center"><?php echo app('translator')->getFromJson('backend.caption'); ?></th>
                        <?php endif; ?>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							        <th class="text-center"><?php echo app('translator')->getFromJson('backend.options'); ?></th>
							    </tr>
						    </thead>
						    <tbody>
							    <?php $__currentLoopData = $carousel; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								    <tr>
								    	<td class="text-center"><?php echo e($key+1); ?></td>
								        <td class="text-center">
								        	<img class="img img-responsive" alt="image" src="<?php echo e(asset($storage_url.'img/home/'.$val->media_url)); ?>" style="max-height: 100px;margin: 0 auto">
								        </td>
                        <?php $__currentLoopData = config('translatable.locales'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <td class="text-center">
                            <?php 
                              $title = $val->locales()->where('locale',$lang)->first();
                             ?>
                            <?php echo e(isset($title->media_title) ? $title->media_title : $val->media_title); ?>

                          </td>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								        <td class="text-center">
                          
                          <button title="Update Image" class="btn btn-warning" data-toggle="modal" data-target="#update<?php echo e($val->id); ?>"><i class="fa fa-pencil" aria-hidden="true"></i></button>

								        	
  												<button title="Delete Image" class="btn btn-danger" data-toggle="modal" data-target="#delete<?php echo e($val->id); ?>"><i class="fa fa-trash" aria-hidden="true"></i></button>
  												<div id="delete<?php echo e($val->id); ?>" class="modal fade" role="dialog">
  													<div class="modal-dialog modal-sm">

  													<?php echo Form::open(['url' => route('beHomeDeleteCarousel',['id'=>$val->id]),'method'=>'delete']); ?>

  														<?php echo Form::hidden('id',$val->id); ?>

  														<div class="modal-content text-center">
  															<div class="modal-body">
  																<h3><?php echo app('translator')->getFromJson('backend.ask-delete-image'); ?></h3>
  																<img class="img img-responsive" alt="image" src="<?php echo e(asset($storage_url.'img/home/'.$val->media_url)); ?>">
  																<br>
  																<button type="submit" class="btn btn-primary"><?php echo app('translator')->getFromJson('backend.delete'); ?></button>
  															<button class="btn btn-default" data-dismiss="modal"><?php echo app('translator')->getFromJson('backend.cancel'); ?></button>
  															</div>
  														</div>
  													<?php echo Form::close(); ?>


  													</div>
  												</div>
								      </td>
								    </tr>
								  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						    </tbody>
						  </table>
			    	</div>