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

    <div class="border-item">
        <form class="form-row">
            <?php if($caseRequest ?? ''  && $caseRequest->id): ?>
                <?php echo method_field('PUT'); ?>
            <?php endif; ?>
            <?php echo csrf_field(); ?>

                <div class="form-group col-md-6">
                    <label><?php echo e(meta('request_type', $local) ?? __('caseRequests.request_type')); ?> </label>
                    <input readonly class="form-control bg-white" value='<?php echo e(__('caseRequests.'.$caseRequest->request_type)); ?>'/>
                </div>
                <div class="form-group col-md-6">
                    <label><?php echo e(meta('name', $local) ?? __('caseRequests.name')); ?> </label>
                    <input readonly class="form-control bg-white" value='<?php echo e($caseRequest->name); ?>'/>
                </div>
                <div class="form-group col-md-6">
                    <label><?php echo e(meta('email', $local) ?? __('caseRequests.email')); ?> </label>
                    <input readonly class="form-control bg-white" value='<?php echo e($caseRequest->email); ?>'/>
                </div>
                <div class="form-group col-lg-6">
                    <label><?php echo e(meta('phone', $local) ?? __('caseRequests.phone')); ?> </label>
                    <input readonly class="form-control bg-white" value='<?php echo e($caseRequest->phone); ?>'/>
                </div>
                <div class="form-group col-lg-12">
                    <label><?php echo e(meta('subject', $local) ?? __('caseRequests.subject')); ?> </label>
                    <input readonly class="form-control bg-white" value='<?php echo e($caseRequest->subject); ?>'/>
                </div>
                <div class="form-group col-lg-12">
                    <label><?php echo e(meta('requests', $local) ?? __('caseRequests.requests')); ?> </label>
                    <textarea cols="30" rows="10" readonly class="form-control bg-white"><?php echo e($caseRequest->requests ?? ""); ?></textarea>
                </div>

                <div class="form-group col-lg-12">
                    <label><?php echo e(meta('details', $local) ?? __('caseRequests.details')); ?> </label>
                    <textarea cols="30" rows="10" readonly class="form-control bg-white"><?php echo e($caseRequest->details ?? ""); ?></textarea>
                </div>

                <div class="border-item photos col-md-12 other_image_container">
                    <label><?php echo e(meta('files', $local) ?? __('trainingRequests.files')); ?> </label>
                    <div class="row">
                        <?php if($caseRequest->files && is_array($caseRequest->files) && count($caseRequest->files)): ?>
                            <?php $__currentLoopData = $caseRequest->files; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-md-4">
                                    <div class="items">
                                        <div class="img">
                                            <a href="<?php echo e(asset($file)); ?>" data-fancybox="gallery"><img src="<?php echo e(asset($file)); ?>" alt=""></a>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <a class="btn btn-success" download href="<?php echo e(asset($file)); ?>"><i class="fa fa-download"></i> Download</a>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </div>
                </div>
            <div class="text-center mt-5 col-12">
                <a href="<?php echo e(route('caseRequests.index')); ?>" class="butn "><span><?php echo e(__('caseRequests.head')); ?></span></a>
            </div>
        </form>
    </div>



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

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->
    <script src="<?php echo e(asset('/assets/admin/js/lib/tinymce.min.js')); ?>"></script>
    
    <script>
        var route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>";
        var url = "<?php echo e(url('/')); ?>/",
            currentLanguage = "<?php echo e($local); ?>",
            inputName = '';
    </script>
    <script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>

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




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\legal\resources\views/admin/case_requests/form.blade.php ENDPATH**/ ?>