<?php $__env->startSection('content'); ?>
    <div class="side-title">
        <h3><?php echo e($head ?? ''); ?></h3>
    </div>

    <div class="border-item">
        <!-- Hidden master input to clone from -->
        <input type="file" id="fileTemplate" name="images[]" accept="image/*" style="display: none;" />
        <form class="form-row" method="post" onsubmit="saveForm(this)" action="<?php echo e($action); ?>" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>

            <div class="border-item photos col-md-12 other_image_container">
                <div class="row" id="imageContainer">
                    <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-md-4">
                            <div class="items">
                                <div class="img">
                                    <a href="<?php echo e($photo->image_url); ?>" data-fancybox="gallery"><img src="<?php echo e($photo->image_url); ?>" alt=""></a>
                                </div>
                                <input type="hidden" name="old_images[]" value="<?php echo e($photo->image ?? ""); ?>">
                                <a href="#" onclick="DeleteImg(this)" class="close"><i class="fas fa-times"></i></a>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <div class="text-center">
                    <div class="clearfix"></div>
                    <span id="add">
                        <a class="add" id="addImage"> <?php echo e(__('brands.add_photos')); ?> </a>
                    </span>
                </div>
            </div>

            <div class="text-center mt-5 col-12">
                <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
            </div>
        </form>
    </div>

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

<?php $__env->startSection('inner_js'); ?>
    <script src="<?php echo e(asset('assets/admin/js/custom/admin/images_grid.js')); ?>"></script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('admin.layouts.container', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mostafagalal/Desktop/Sites/madar/resources/views/admin/brands/index.blade.php ENDPATH**/ ?>