
<?php $__env->startSection('content'); ?>
<!-- BEGIN: Content-->
<div class="app-content content ">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper container-xxl p-0">
        <div class="content-header row">
            <div class="content-header-left col-md-9 col-12 mb-2">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h2 class="content-header-title float-start mb-0"><?php echo e(__('lang.admin_menu_banners')); ?></h2>
                        <div class="breadcrumb-wrapper">
                            <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo route('dashboard'); ?>"><?php echo e(__('lang.admin_menu_dashboard')); ?></a>
                                </li>
                                <li class="breadcrumb-item <?php echo e(Request::is('admin/banners*') ? 'active' : ''); ?>"><a href="<?php echo route('banners.index'); ?>"><?php echo e(__('lang.admin_banner_list')); ?></a>
                                </li>
                                <li class="breadcrumb-item active"><?php echo e(__('lang.admin_banner_info')); ?>

                                </li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <!-- users edit start -->
            <section class="app-user-edit">
                <div class="card">
                    <div class="card-body">
                        <div class="tab-content">
                            <div class="tab-pane active" id="account" aria-labelledby="account-tab" role="tabpanel">
                                <?php echo Form::model($banner, ['method' => 'PATCH','enctype'=>'multipart/form-data', 'route' => ['banners.update', $banner->id]]); ?>

                                <?php echo csrf_field(); ?>
                                <div class="d-flex mb-2">
                                    <?php if($banner->image!=''): ?>
                                    <img src="<?php echo e(asset('app-assets/images/banners/'.$banner->image)); ?>" alt="users avatar" class="user-avatar users-avatar-shadow rounded me-2 my-25 cursor-pointer" height="90" width="90" onerror="this.src='<?php echo e(asset('app-assets/images/no-image.png')); ?>';"/>
                                    <?php else: ?>
                                    <img src="<?php echo e(asset('app-assets/images/no-image.png')); ?>" alt="users avatar" class="user-avatar users-avatar-shadow rounded me-2 my-25 cursor-pointer" height="90" width="90" />
                                    <?php endif; ?>
                                    <div class="mt-50">
                                    <h4><?php echo e($banner->title); ?></h4>
                                        <div class="col-12 d-flex mt-1 px-0">
                                            <label class="btn btn-primary me-75 mb-0" for="change-picture">
                                                <span class="d-none d-sm-block"><?php echo e(__('lang.admin_button_upload')); ?></span>
                                                <input class="form-control" type="file" id="change-picture" hidden accept="image/png, image/jpeg, image/jpg" name="image"/>
                                                <span class="d-block d-sm-none">
                                                    <i class="me-0" data-feather="edit"></i>
                                                </span>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="mb-1">
                                            <label class="form-label" for="username"><?php echo e(__('lang.admin_title')); ?></label>
                                            <input type="text" class="form-control" placeholder="<?php echo e(__('lang.admin_title')); ?>" value="<?php echo e($banner->title); ?>" name="title" id="username" />
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="mb-1">
                                            <label class="form-label" for="username"><?php echo e(__('lang.admin_subtitle')); ?></label>
                                            <input type="text" class="form-control" placeholder="<?php echo e(__('lang.admin_subtitle')); ?>" value="<?php echo e($banner->sub_title); ?>" name="sub_title" id="username" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="mb-1">
                                            <label class="form-label" for="username"><?php echo e(__('lang.admin_type')); ?></label>
                                            <select class="form-select" id="banner_type" name="banner_type">
                                                <option value="website" <?php if($banner->banner_type == 'web'): ?> selected  <?php endif; ?>><?php echo e(__('lang.admin_banner_website')); ?></option>
                                                <option value="app" <?php if($banner->banner_type == 'app'): ?> selected  <?php endif; ?>><?php echo e(__('lang.admin_banner_app')); ?></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="mb-1">
                                            <label class="form-label" for="status"><?php echo e(__('lang.admin_status')); ?></label>
                                            <select class="form-select" id="status" name="status">
                                                <option value="1" <?php if($banner->status == 1): ?> selected  <?php endif; ?>><?php echo e(__('lang.admin_active')); ?></option>
                                                <option value="0" <?php if($banner->status == 0): ?> selected  <?php endif; ?>><?php echo e(__('lang.admin_deactivated')); ?></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-12 d-flex flex-sm-row flex-column mt-2">
                                        <button type="submit" class="btn btn-primary mb-1 mb-sm-0 me-0 me-sm-1"><?php echo e(__('lang.admin_button_save_changes')); ?></button>
                                        <a href="<?php echo route('banners.index'); ?>" class="btn btn-outline-secondary"><?php echo e(__('lang.admin_button_back')); ?></a>
                                    </div>
                                </div>
                                <?php echo Form::close(); ?>

                            </div>
                            <!-- Account Tab ends -->
                        </div>
                    </div>
                </div>
            </section>
            <!-- coupons edit ends -->

        </div>
    </div>
</div>
<!-- END: Content-->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/waterfl/public_html/resources/views/banners/edit.blade.php ENDPATH**/ ?>