<?php if (isset($component)) { $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\MasterLayout::class, []); ?>
<?php $component->withName('master-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="card card-block card-stretch">
                    <div class="card-body p-0">
                        <div class="d-flex justify-content-between align-items-center p-3">
                            <h5 class="font-weight-bold"><?php echo e($pageTitle ?? __('message.list')); ?></h5>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <?php echo e(Form::open(['method' => 'POST', 'route' => ['frontend.website.information.update', $type], 'enctype' => 'multipart/form-data', 'data-toggle'=>'validator'])); ?>

                            <div class="row">
                                <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if( in_array($key,['app_name','download_title','download_footer_content','play_store_link','app_store_link','contact_title','contact_subtitle','download_title','download_subtitle','track_order_title','track_order_subtitle','track_page_title'] )): ?>
                                        <div class="col-md-6 form-group">
                                            <?php
                                                $label_message = '';
                                                switch ($key) {
                                                    case 'download_footer_content':
                                                        $label_message = '* ' . __('message.max_100_character');
                                                        break;
                                                    case 'title':
                                                        $label_message = '* ' . __('message.max_100_character');
                                                        break;
                                                    case 'contact_subtitle':
                                                        $label_message = '* ' . __('message.max_100_character');
                                                        break;
                                                    case 'download_subtitle':
                                                        $label_message = '* ' . __('message.max_100_character');
                                                        break;

                                                    default:
                                                        break;
                                                }
                                            ?>
                                            <?php echo e(Form::label($key, __('message.'.$key).' <span class="text-danger"> '.$label_message . '</span>',['class'=>'form-control-label'], false )); ?>

                                            <?php echo e(Form::text($key, $value ?? null,[ 'placeholder' =>  __('message.'.$key), 'class' => 'form-control' ])); ?>

                                        </div>
                                    <?php elseif(in_array($key,['create_order_description','download_description','long_des','track_page_description'])): ?>
                                        <div class="col-md-12 form-group">
                                            <?php
                                                $label_message = '';
                                                switch ($key) {
                                                    case 'download_description':
                                                        $label_message = '* ' . __('message.max_250_character');
                                                        break;
                                                    default:
                                                        break;
                                                }
                                            ?>
                                            <?php echo e(Form::label($key, __('message.'.$key).' <span class="text-danger"> '.$label_message . '</span>',['class'=>'form-control-label'],false )); ?>

                                            <?php echo e(Form::textarea($key, $value ?? null, ['class' => 'form-control textarea', 'rows' => 3, 'placeholder' => __('message.'.$key)])); ?>

                                        </div>
                                    <?php else: ?>
                                        <div class="form-group col-md-4">
                                            <label class="form-control-label" for="<?php echo e($key); ?>"><?php echo e(__('message.'.$key)); ?> </label>
                                            <div class="custom-file mb-1">
                                                <input type="file" name="<?php echo e($key); ?>" class="custom-file-input" accept="image/*" data--target="<?php echo e($key); ?>_image_preview">
                                                <label class="custom-file-label"><?php echo e(__('message.choose_file',['file' =>  __('message.image') ])); ?></label>
                                            </div>
                                            <span class="text-danger">* <?php echo e(__('message.' . $key . '_desc')); ?></span>
                                        </div>
                                        <div class="col-md-2 mb-2">
                                            <img id="<?php echo e($key); ?>_image_preview" src="<?php echo e(getSingleMedia($value, $key)); ?>" alt="<?php echo e($key); ?>" class="attachment-image mt-1 <?php echo e($key); ?>_image_preview">
                                        </div>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                            <hr>
                            <div class="col-md-12 mt-1 mb-4">
                                <button class="btn btn-md btn-primary float-md-right" id="saveButton"><?php echo e(__('message.save')); ?></button>
                            </div>
                        <?php echo e(Form::close()); ?>

                    </div>
                </div>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23)): ?>
<?php $component = $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23; ?>
<?php unset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23); ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/mxunzo.mimeld.com/resources/views/websitesection/form.blade.php ENDPATH**/ ?>