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

<div class="border-item">
    <form class="form-row" method="post" action="<?php echo e($action); ?>" enctype="multipart/form-data">
        <input type="hidden" name="user_id" value="<?php echo e(auth()->id()); ?>">
        <?php if($package ?? ''  && $package->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

        <div class="form-group col-lg-12">
            <label><?php echo e(meta('package_category_id', $lang) ?? __('packages.category')); ?></label>

            <select name="package_category_id" id="package_category_id" class="form-control <?php echo e($errors->has('package_category_id') ? 'is-invalid' : ''); ?>">
                <option value=""><?php echo e(meta('category_id', $lang) ?? __('packages.category')); ?></option>
                <?php $__currentLoopData = $packageCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $packageCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <option <?php echo e(old("package_category_id", $package->package_category_id ?? "") == $packageCategory->id ? 'selected': ''); ?> value="<?php echo e($packageCategory->id); ?>"><?php echo e($packageCategory->name ?? ''); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('title', $language->local) ?? __('packages.title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('title_'.$language->local) ? 'is-invalid' : ''); ?>" name="title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('title', $language->local) ?? __('packages.title')); ?>" value='<?php echo e(old("title_{$language->local}", $package[$language->local]->title ?? "")); ?>'/>
        </div>

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('slug', $language->local) ?? __('packages.slug')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('slug_'.$language->local) ? 'is-invalid' : ''); ?>" name="slug_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('slug', $language->local) ?? __('packages.slug')); ?>" value='<?php echo e(old("slug_{$language->local}", $package[$language->local]->slug ?? "")); ?>'/>
        </div>

        <div class="form-group col-lg-12">
            <label><?php echo e(meta('keywords', $language->local) ?? __('packages.keywords')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('keywords_'.$language->local) ? 'is-invalid' : ''); ?>" name="keywords_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('keywords', $language->local) ?? __('packages.keywords')); ?>" value='<?php echo e(old("keywords_{$language->local}", $package[$language->local]->keywords ?? "")); ?>'/>

        </div>

        <div class="form-group col-lg-12">
            <label><?php echo e(meta('meta_description', $language->local) ?? __('packages.meta_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('meta_description_'.$language->local) ? 'is-invalid' : ''); ?>" name="meta_description_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('meta_description', $language->local) ?? __('packages.meta_description')); ?>" value='<?php echo e(old("meta_description_{$language->local}", $package[$language->local]->meta_description ?? "")); ?>'/>
        </div>

        <div class="form-group col-lg-12">
            <label><?php echo e(meta('description', $language->local) ?? __('packages.description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="description_<?php echo e($language->local); ?>" class="form-control my-editor <?php echo e($errors->has('description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('description', $language->local) ?? __('packages.description')); ?>"><?php echo e(old("description_{$language->local}", $package[$language->local]->description ?? "")); ?></textarea>
        </div>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        
        <div class="package_info col-12 row">
            <div class="form-group col-lg-12">
                <label><?php echo e(__('packages.attach')); ?> </label>
                <input id="attach_thumbnail" class="attach_thumbnail" type="hidden" name="attach" value="<?php echo e(old("attach", $package->attach ?? "")); ?>"/>

                <div class="photos main_attach <?php echo e(old('attach', $package->attach ?? '') ? ' wow fadeInUp' : 'hide'); ?>">
                    <div class="col-lg-4">
                        <div class="items">
                            <div>
                                <a href="<?php echo e(asset(old('attach', $package->attach ?? ''))); ?>" class="btn btn-primary attach_href" target="_blank" > Browse </a>

                                <a id="lfm" data-input=".attach_thumbnail" data-href=".attach_href" data-preview=".attach_holder" data-show=".main_attach" data-hide=".pick_attach_button" class="lfm btn btn-primary ml-4 text-light">
                                    <i class="fas fa-attach"></i> Choose
                                </a>
                            </div>
                            <a href="#" class="showHide resetImage close" data-empty=".attach_thumbnail" data-hide=".main_attach" data-show=".pick_attach_button"><i class="fas fa-times"></i></a>
                        </div>
                    </div>
                </div>

                <div class="clearfix"></div>
                <span class="input-group-btn pick_attach_button <?php echo e(old('attach', $package->attach ?? '') ? 'hide' : ''); ?> ">
                    <a id="lfm" data-input=".attach_thumbnail" data-href=".attach_href" data-preview=".attach_holder" data-show=".main_attach" data-hide=".pick_attach_button" class="lfm btn btn-primary text-light">
                        <i class="fas fa-attach"></i> Choose
                    </a>
                </span>
            </div>

            <div class="form-group col-lg-6">
                <label><?php echo e(__('packages.price')); ?> </label>
                <div class="input-group mb-3">
                    <input type="number" step="0.01" class="form-control <?php echo e($errors->has('price') ? 'is-invalid' : ''); ?>" name="price" placeholder="<?php echo e(__('packages.price')); ?>" value='<?php echo e(old("price", $package->price ?? "")); ?>'/>
                    <div class="input-group-append">
                        <span class="input-group-text" id="basic-addon2">SAR</span>
                    </div>
                    <div class="input-group-append">
                        <div class="input-group-text" id="basic-addon2">
                            <div class="form-check">
                                <input class="form-check-input" name="offer" type="checkbox" value="1" <?php echo e(old("offer", $package->offer ?? "") ? 'checked' : ''); ?> id="offer">
                                <label class="form-check-label" for="offer"><?php echo e(__('packages.offer')); ?></label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="form-group col-lg-6 old_price hide">
                <label><?php echo e(__('packages.old_price')); ?> </label>
                <div class="input-group mb-3">
                    <input type="number" step="0.01" class="form-control <?php echo e($errors->has('old_price') ? 'is-invalid' : ''); ?>" name="old_price" placeholder="<?php echo e(__('packages.old_price')); ?>" value='<?php echo e(old("old_price", $package->old_price ?? "")); ?>'/>
                    <div class="input-group-append">
                        <span class="input-group-text" id="basic-addon2">SAR</span>
                    </div>
                </div>
            </div>

            <div class="col-12"></div>

            <div class="form-group col-lg-6">
                <label><?php echo e(__('packages.persons')); ?> </label>
                <input type="number" class="form-control <?php echo e($errors->has('persons') ? 'is-invalid' : ''); ?>" name="persons" placeholder="<?php echo e(__('packages.persons')); ?>" value='<?php echo e(old("persons", $package->persons ?? "")); ?>'/>
            </div>

            <div class="form-group col-lg-6">
                <label><?php echo e(__('packages.flight_duration_label')); ?> </label>
                <div class="input-group mb-3">
                    <input type="text" class="form-control  html-duration-picker <?php echo e($errors->has('flight_duration') ? 'is-invalid' : ''); ?>" name="flight_duration" placeholder="<?php echo e(__('packages.flight_duration_label')); ?>" value='<?php echo e(old("flight_duration", $package->flight_duration ?? "")); ?>' data-hide-seconds data-duration="00:15:00" data-duration-min="00:05:00" />
                    <div class="input-group-append">
                        <span class="input-group-text" id="basic-addon2"><?php echo e(__('packages.hour')); ?></span>
                    </div>
                </div>
            </div>

            <div class="card p-3 mb-3 col-md-12">
                <label><?php echo e(__('packages.journey_duration_label')); ?> </label>
                <div class=" row">
                    <div class="form-group col-6">
                        <label><?php echo e(__('packages.start_date')); ?> </label>
                        <input readonly type="text" class="form-control date_from <?php echo e($errors->has('start_date') ? 'is-invalid' : ''); ?>" name="start_date" placeholder="<?php echo e(__('packages.start_date')); ?>" value='<?php echo e(old("start_date", $package->start_date ?? "")); ?>'/>
                    </div>

                    <div class="form-group col-6">
                        <label><?php echo e(__('packages.end_date')); ?> </label>
                        <input readonly type="text" class="form-control date_to <?php echo e($errors->has('end_date') ? 'is-invalid' : ''); ?>" name="end_date" placeholder="<?php echo e(__('packages.end_date')); ?>" value='<?php echo e(old("end_date", $package->end_date ?? "")); ?>'/>
                    </div>
                </div>
            </div>

            <div class="form-group col-6">
                <label for="latitude">Latitude</label>
                <input type="text" class="form-control" id="latitude" name="latitude" aria-describedby="latitudeHelp" placeholder="Latitude" value='<?php echo e(old("latitude", $package->latitude ?? "")); ?>'>
                <small id="latitudeHelp" class="form-text text-muted"><?php echo __('packages.coords_help'); ?></small>
            </div>

            <div class="form-group col-6">
                <label for="longitude">Longitude</label>
                <input type="text" class="form-control" id="longitude" name="longitude" aria-describedby="longitudeHelp" placeholder="Longitude" value='<?php echo e(old("longitude", $package->longitude ?? "")); ?>'>
                <small id="longitudeHelp" class="form-text text-muted"><?php echo __('packages.coords_help'); ?></small>
            </div>

            <div class="form-group col-lg-12">
                <label><?php echo e(__('packages.enable_wifi')); ?> </label>
                <div class="card p-1">
                    <div class="d-flex p-2">
                        <div class="col-md-6 custom-control custom-radio">
                            <input <?php echo e(old('wifi', $package->wifi ?? '') == 0 ? 'checked' : 'checked'); ?> type="radio" class="custom-control-input" name="wifi" id="wifi_0" value='0'/>
                            <label for="wifi_0" class="custom-control-label"><?php echo e(__('dashboard.no')); ?> </label>
                        </div>
                        <div class="col-md-6 custom-control custom-radio ">
                            <input <?php echo e(old('wifi', $package->wifi ?? '') == 1 ? 'checked' : ''); ?> type="radio" class="custom-control-input" name="wifi" id="wifi_1" value='1'/>
                            <label for="wifi_1" class="custom-control-label"><?php echo e(__('dashboard.yes')); ?> </label>
                        </div>
                    </div>
                </div>
            </div>

            <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="form-group col-lg-6">
                <label><?php echo e(__('packages.pickup')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                <input type="text" class="form-control <?php echo e($errors->has('pickup_'.$language->local) ? 'is-invalid' : ''); ?>" name="pickup_<?php echo e($language->local); ?>" placeholder="<?php echo e(__('packages.pickup')); ?>" value='<?php echo e(old("pickup_{$language->local}", $package[$language->local]->pickup ?? "")); ?>'/>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            
            <div class="card mb-5 col-md-12">
                <div class="card-header"><h4><?php echo e(__('packages.price_include')); ?></h4></div>
                <?php for($i = 0; $i< count($priceIncludes['en'] ?? []); $i++): ?>
                <div class=" row">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="form-group col-5">
                        <label><?php echo e(__('packages.price_include')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                        <input type="text" class="form-control" name="price_include_<?php echo e($language->local); ?>[]" placeholder="<?php echo e(__('packages.price_include')); ?>" value='<?php echo e($priceIncludes[$language->local][$i] ?? ""); ?>'/>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" data-node= ".price_include" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <?php endfor; ?>
                <div class="price_include row d-none">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="form-group col-5">
                        <label><?php echo e(__('packages.price_include')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                        <input type="text" class="form-control" name="price_include_<?php echo e($language->local); ?>[]" placeholder="<?php echo e(__('packages.price_include')); ?>"/>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <div class="text-left mb-4 col-12">
                    <button class="butn add_row" data-node= ".price_include" type="button"><span class="fa fa-plus"></span></button>
                </div>
            </div>
            

            
            <div class="card mb-5 col-md-12">
                <div class="card-header"><h4><?php echo e(__('packages.price_exclude')); ?></h4></div>
                <?php for($i = 0; $i< count($priceExcludes['en'] ?? []); $i++): ?>
                <div class=" row">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="form-group col-5">
                        <label><?php echo e(__('packages.price_exclude')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                        <input type="text" class="form-control" name="price_exclude_<?php echo e($language->local); ?>[]" placeholder="<?php echo e(__('packages.price_exclude')); ?>" value='<?php echo e($priceExcludes[$language->local][$i] ?? ""); ?>'/>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" data-node= ".price_exclude" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <?php endfor; ?>
                <div class="price_exclude row d-none">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="form-group col-5">
                        <label><?php echo e(__('packages.price_exclude')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                        <input type="text" class="form-control" name="price_exclude_<?php echo e($language->local); ?>[]" placeholder="<?php echo e(__('packages.price_exclude')); ?>"/>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <div class="text-left mb-4 col-12">
                    <button class="butn add_row" data-node= ".price_exclude" type="button"><span class="fa fa-plus"></span></button>
                </div>
            </div>
            

            
            <div class="card mb-5 col-md-12">
                <div class="card-header"><h4><?php echo e(__('packages.itinerary')); ?></h4></div>
                <?php for($i = 0; $i< count($itinerary['en']['title'] ?? []); $i++): ?>
                <div class="mb-5 row">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-5">
                        <div class="form-group">
                            <label><?php echo e(__('packages.itinerary_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <input type="text" class="form-control" name="itinerary_<?php echo e($language->local); ?>[title][]" placeholder="<?php echo e(__('packages.itinerary_title')); ?>" value='<?php echo e($itinerary[$language->local]['title'][$i] ?? ""); ?>'/>
                        </div>
                        <div class="form-group">
                            <label><?php echo e(__('packages.itinerary_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <textarea rows="3" class="form-control" name="itinerary_<?php echo e($language->local); ?>[description][]" placeholder="<?php echo e(__('packages.itinerary_description')); ?>"><?php echo e($itinerary[$language->local]['description'][$i] ?? ""); ?></textarea>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" data-node= ".itinerary" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <?php endfor; ?>
                <div class="itinerary row d-none">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-5">
                        <div class="form-group">
                            <label><?php echo e(__('packages.itinerary_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <input type="text" class="form-control" name="itinerary_<?php echo e($language->local); ?>[title][]" placeholder="<?php echo e(__('packages.itinerary_title')); ?>"/>
                        </div>
                        <div class="form-group">
                            <label><?php echo e(__('packages.itinerary_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <textarea rows="3" class="form-control" name="itinerary_<?php echo e($language->local); ?>[description][]" placeholder="<?php echo e(__('packages.itinerary_description')); ?>"></textarea>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <div class="text-left mb-4 col-12">
                    <button class="butn add_row" data-node= ".itinerary" type="button"><span class="fa fa-plus"></span></button>
                </div>
            </div>
            

            
            <div class="card mb-5 col-md-12">
                <div class="card-header"><h4><?php echo e(__('packages.faq')); ?></h4></div>
                <?php for($i = 0; $i< count($faq['en']['question'] ?? []); $i++): ?>
                <div class="mb-5 row">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-5">
                        <div class="form-group">
                            <label><?php echo e(__('packages.question')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <input type="text" class="form-control" name="faq_<?php echo e($language->local); ?>[question][]" placeholder="<?php echo e(__('packages.question')); ?>" value='<?php echo e($faq[$language->local]['question'][$i] ?? ""); ?>'/>
                        </div>
                        <div class="form-group">
                            <label><?php echo e(__('packages.answer')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <textarea rows="3" class="form-control" name="faq_<?php echo e($language->local); ?>[answer][]" placeholder="<?php echo e(__('packages.answer')); ?>"><?php echo e($faq[$language->local]['answer'][$i] ?? ""); ?></textarea>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" data-node= ".faq" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <?php endfor; ?>
                <div class="faq row d-none">
                    <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-5">
                        <div class="form-group">
                            <label><?php echo e(__('packages.question')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <input type="text" class="form-control" name="faq_<?php echo e($language->local); ?>[question][]" placeholder="<?php echo e(__('packages.question')); ?>"/>
                        </div>
                        <div class="form-group">
                            <label><?php echo e(__('packages.answer')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                            <textarea rows="3" class="form-control" name="faq_<?php echo e($language->local); ?>[answer][]" placeholder="<?php echo e(__('packages.answer')); ?>"></textarea>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="text-left mt-4 col-2">
                        <button class="btn btn-danger delete_row" type="button"><span class="fa fa-times"></span></button>
                    </div>
                </div>
                <div class="text-left mb-4 col-12">
                    <button class="butn add_row" data-node= ".faq" type="button"><span class="fa fa-plus"></span></button>
                </div>
            </div>
            
        </div>
        

        
        
        <div class="form-group col-lg-12 ">
            <label><?php echo e(meta('video_type', $lang) ?? __('packages.type')); ?> </label>
            <div class="card p-1">
                <div class="d-flex p-2">
                    <div class="col-md-6 custom-control custom-radio">
                        <input <?php echo e(old('video_type', $package->video_type ?? '') == 1 ? 'checked' : ''); ?> id="external" type="radio" class="custom-control-input external" name="video_type" value='1'/>
                        <label for="external" class="custom-control-label"><?php echo e(meta('external_link', $lang) ?? __('packages.external_link')); ?> </label>
                    </div>
                    <div class="col-md-6 custom-control custom-radio ">
                        <input <?php echo e(old('video_type', $package->video_type ?? '') == 2 ? 'checked' : ''); ?> id="local" type="radio" class="custom-control-input local" name="video_type" value='2'/>
                        <label for="local" class="custom-control-label"><?php echo e(meta('local_link', $lang) ?? __('packages.local_link')); ?> </label>
                    </div>
                </div>
            </div>
        </div>
        

        
        <div class="form-group col-lg-12 url_container  d-none">
            <label><?php echo e(meta('video_url', $lang) ?? __('packages.url')); ?></label>
            <input type="text" class="form-control url <?php echo e($errors->has('video_url') ? 'is-invalid' : ''); ?>" name="video_url" placeholder="<?php echo e(meta('video_url', $lang) ?? __('packages.url')); ?>" value='<?php echo e(old("video_url", $package->video ?? "")); ?>'/>
        </div>
        

        
        <div class="form-group col-lg-12 video_container d-none">
            <label><?php echo e(__('packages.video')); ?> </label>
            <input id="video_thumbnail" class="video_thumbnail" type="hidden" name="video" value="<?php echo e(old("video", $package->video ?? "")); ?>"/>

            <div class="photos main_video <?php echo e(old('video', $package->video ?? '') ? '' : 'hide'); ?>">
                <div class="col-lg-4">
                    <div class="items">
                        <div>
                            <a href="<?php echo e(asset(old('video', $package->video ?? ''))); ?>" class="btn btn-primary video_href" target="_blank" > Browse </a>

                            <a id="lfm" data-input=".video_thumbnail" data-href=".video_href" data-preview=".video_holder" data-show=".main_video" data-hide=".pick_video_button" class="lfm btn btn-primary ml-4 text-light">
                                <i class="fas fa-video"></i> Choose
                            </a>
                        </div>
                        <a href="#" class="showHide resetImage close" data-empty=".video_thumbnail" data-hide=".main_video" data-show=".pick_video_button"><i class="fas fa-times"></i></a>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
            <span class="input-group-btn pick_video_button <?php echo e(old('video', $package->video ?? '') ? 'hide' : ''); ?> ">
                <a id="lfm" data-input=".video_thumbnail" data-href=".video_href" data-preview=".video_holder" data-show=".main_video" data-hide=".pick_video_button" class="lfm btn btn-primary text-light">
                    <i class="fas fa-video"></i> Choose
                </a>
            </span>
        </div>
        
        

        
        <?php if(preg_match('/https:\/\/img\.youtube\.com/', $package->image ?? '', $match) ): ?>
            <div class="form-group col-lg-12 youtube_thumbnails">
                <label><?php echo e(meta('image', $lang) ?? __('packages.image')); ?> </label>
                <div class="photos <?php echo e($package->image ?? '' ? ' wow fadeInUp' : 'hide'); ?>">
                    <div class="col-lg-4">
                        <div class="items">
                            <div class="img">
                                <a target="_blank" href="<?php echo e($package->image ?? ''); ?>" >
                                    <img src="<?php echo e($package->image ?? ''); ?>">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php endif; ?>

        <div class="form-group image_container col-lg-12  d-none">
            <label><?php echo e(meta('image', $lang) ?? __('packages.image')); ?> </label>
            <input id="image_thumbnail" class="image_thumbnail" type="hidden" name="image" value="<?php echo e(old("image", $package->image ?? "")); ?>"/>

            <div class="photos main_photo <?php echo e(old('image', $package->image ?? '') ? ' wow fadeInUp' : 'hide'); ?>">
                <div class="col-md-4">
                    <div class="items">
                        <div class="img">
                            <a href="#" id="lfm" data-input=".image_thumbnail" data-preview=".image_holder" class="lfm" data-hide=".pick_button">
                                <img src="<?php echo e(asset(old('image', $package->image ?? ''))); ?> "  id="image_holder" class="image_holder"/>
                            </a>
                        </div>
                        <a href="#" class="showHide resetImage close" data-empty=".image_thumbnail" data-hide=".main_photo" data-show=".pick_button"><i class="fas fa-times"></i></a>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
            <span class="input-group-btn pick_button <?php echo e(old('image', $package->image ?? '') ? 'hide' : ''); ?> ">
                <a id="lfm"  data-input=".image_thumbnail" data-preview=".image_holder" data-show=".main_photo" data-hide=".pick_button" class="lfm btn btn-primary text-light">
                    <i class="fas fa-camera-retro"></i> Choose
                </a>
             </span>
        </div>

        <div class="border-item photos col-md-12 other_image_container">
            <div class="row">
                <?php if($package ?? false): ?>
                    <?php $__currentLoopData = $package['photos']; $__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(asset($photo->image ?? '')); ?>" data-fancybox="gallery"><img src="<?php echo e(asset($photo->image ?? '')); ?>" alt=""></a>
                                </div>
                                <input type="hidden" name="images[]" value="<?php echo e($photo->image ?? ""); ?>">
                                <a href="#" class="close"><i class="fas fa-times"></i></a>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </div>
            <div class="text-center">
                <input id="other_image_thumbnail" class="other_image_thumbnail" type="hidden"/>
                <div class="clearfix"></div>
                <span id="add">
                    <a id="lfm" data-width="" data-cache="package_gallery" data-input=".other_image_thumbnail" data-preview="" data-show="" data-hide="" class="lfm add">
                        Add New Item
                    </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'); ?>
    <!-- Editor JS files -->
   <script src="<?php echo e(asset('/assets/admin/js/lib/tinymce.min.js')); ?>"></script>
        
    <script>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            currentLanguage = "<?php echo e($lang); ?>",
            imagePath = "<?php echo e(asset('')); ?>",
            imageTitle = null,
            inputName = null;
    </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>
    <script src="<?php echo e(asset('assets/admin/js/packages.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\modules\resources\views/admin/packages/form.blade.php ENDPATH**/ ?>