Viewing file: e5447dfc2437de7f5dbb4e9a368792285e10889b.php (48.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Campaign Template'); ?>
<?php $__env->startSection('extra-css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('plugins/ion-rangeslider/css/ion.rangeSlider.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('plugins/daterangepicker/daterangepicker.css')); ?>">
<style>
.modal-dialog {
margin-top: 1%;
margin-left: 50%;
}
.modal-dialog {
position: fixed;
margin: auto;
width: 320px;
height: 100%;
right: 0px;
}
.modal-content {
height: 100%;
}
.modal-body{
overflow-y: scroll;
overflow-x: hidden;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<section>
<a class="btn btn-primary" href="<?php echo e(route('customer.campaign.edit',[$campaign])); ?>">Back</a>
<?php if($template == 'one'): ?>
<div class="template_section">
<div class="template_logo_div template_modal">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_title">
<h1 class="template_modal"><?php echo e(isset($campaign_template->heading) && $campaign_template->heading?$campaign_template->heading:'This is your headline.'); ?></h1>
</div>
<div class="template_shopping_img template_modal">
<?php if(isset($campaign_template->product_img_upload) && $campaign_template->product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->product_image_url) && $campaign_template->product_image_url): ?>
<img src="<?php echo e($campaign_template->product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/shopping-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_heading_section">
<h2 class="template_modal"><?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:'Your title here'); ?></h2>
<p class="template_modal">
<?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:' Start your newsletter with multiple visually striking images.
Start by replacing the full-width header and main images with your own, or use a solid color background.'); ?>
</p>
<a href="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" class="campaign_create_btn call_to_action">Call to action</a>
</div>
<div class="template_last">
<h5 class="template_modal"><?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:'My Company'); ?></h5>
<p class="template_modal"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:'You have received this email because you have subscribed to our newsletter.'); ?></p>
<a href="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:''); ?>" class="template_modal">Unsubscribe</a>
<div class="template_last_log">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
</div>
<?php elseif($template == 'two'): ?>
<div class="template_section template_modal">
<div class="template_logo_div">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_title template_modal">
<h1 class="template_modal"><?php echo e(isset($campaign_template->heading) && $campaign_template->heading?$campaign_template->heading:'This is your headline.'); ?></h1>
</div>
<div class="template_shopping_img template_modal">
<?php if(isset($campaign_template->product_img_upload) && $campaign_template->product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->product_image_url) && $campaign_template->product_image_url): ?>
<img src="<?php echo e($campaign_template->product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/shopping-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_product_pre">
<div class="template_product_img template_modal">
<?php if(isset($campaign_template->first_product_img_upload) && $campaign_template->first_product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->first_product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->first_product_image_url) && $campaign_template->first_product_image_url): ?>
<img src="<?php echo e($campaign_template->first_product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/product-img-one.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_product_img margin_left_img template_modal">
<?php if(isset($campaign_template->sec_product_img_upload) && $campaign_template->sec_product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->sec_product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->sec_product_image_url) && $campaign_template->sec_product_image_url): ?>
<img src="<?php echo e($campaign_template->sec_product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/product-img-two.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
<div class="template_heading_section">
<h2 class="template_modal"><?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:'Your title here'); ?></h2>
<p class="template_modal">
<?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:' Start your newsletter with multiple visually striking images.
Start by replacing the full-width header and main images with your own, or use a solid color background.'); ?>
</p>
<a href="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" class="campaign_create_btn call_to_action">Call to action</a>
</div>
<div class="template_last">
<h5 class="template_modal"><?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:'My Company'); ?></h5>
<p class="template_modal"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:'You have received this email because you have subscribed to our newsletter.'); ?></p>
<a href="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:''); ?>" class="template_modal">Unsubscribe</a>
<div class="template_last_log">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
</div>
<?php elseif($template == 'three'): ?>
<div class="template_section template_modal">
<div class="template_logo_div">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_title template_modal">
<h1 class="template_modal"><?php echo e(isset($campaign_template->heading) && $campaign_template->heading?$campaign_template->heading:'This is your headline.'); ?></h1>
</div>
<div class="template_shopping_img template_modal">
<?php if(isset($campaign_template->product_img_upload) && $campaign_template->product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->product_image_url) && $campaign_template->product_image_url): ?>
<img src="<?php echo e($campaign_template->product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/shopping-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_product_pre">
<div class="template_product_img template_modal">
<?php if(isset($campaign_template->first_product_img_upload) && $campaign_template->first_product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->first_product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->first_product_image_url) && $campaign_template->first_product_image_url): ?>
<img src="<?php echo e($campaign_template->first_product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/product-img-one.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_product_img margin_left_img template_modal">
<?php if(isset($campaign_template->sec_product_img_upload) && $campaign_template->sec_product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->sec_product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->sec_product_image_url) && $campaign_template->sec_product_image_url): ?>
<img src="<?php echo e($campaign_template->sec_product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/product-img-two.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
<div class="template_heading_section">
<h2 class="template_modal"><?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:'Your title here'); ?></h2>
<p class="template_modal">
<?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:' Start your newsletter with multiple visually striking images.
Start by replacing the full-width header and main images with your own, or use a solid color background.'); ?>
</p>
<a href="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" class="campaign_create_btn call_to_action">Call to action</a>
</div>
<div class="template_last">
<h5 class="template_modal"><?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:'My Company'); ?></h5>
<p class="template_modal"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:'You have received this email because you have subscribed to our newsletter.'); ?></p>
<a href="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:''); ?>" class="template_modal">Unsubscribe</a>
<div class="template_last_log">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
</div>
<?php elseif($template == 'four'): ?>
<div class="template_section">
<div class="template_logo_div template_modal template_margin_bottom">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_shopping_img template_modal">
<?php if(isset($campaign_template->product_img_upload) && $campaign_template->product_img_upload): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->product_img_upload)); ?>" alt="">
<?php elseif(isset($campaign_template->product_image_url) && $campaign_template->product_image_url): ?>
<img src="<?php echo e($campaign_template->product_image_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/shopping-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_heading_section">
<h2 class="template_modal"><?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:'Your title here'); ?></h2>
<p class="template_modal">
<?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:' Start your newsletter with multiple visually striking images.
Start by replacing the full-width header and main images with your own, or use a solid color background.'); ?>
</p>
<a href="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" class="campaign_create_btn call_to_action">Call to action</a>
</div>
<div class="template_last">
<h5 class="template_modal"><?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:'My Company'); ?></h5>
<p class="template_modal"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:'You have received this email because you have subscribed to our newsletter.'); ?></p>
<a href="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:''); ?>" class="template_modal">Unsubscribe</a>
<div class="template_last_log">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
</div>
<?php elseif($template == 'five'): ?>
<div class="template_section">
<div class="template_heading_section">
<h2 class="template_modal"><?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:'Your title here'); ?></h2>
<p class="template_modal">
<?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:' Start your newsletter with multiple visually striking images.
Start by replacing the full-width header and main images with your own, or use a solid color background.'); ?>
</p>
<a href="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" class="campaign_create_btn call_to_action">Call to action</a>
</div>
<div class="template_last">
<h5 class="template_modal"><?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:'My Company'); ?></h5>
<p class="template_modal"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:'You have received this email because you have subscribed to our newsletter.'); ?></p>
<a href="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:''); ?>" class="template_modal">Unsubscribe</a>
<div class="template_last_log">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
</div>
<?php elseif($template == 'six'): ?>
<div class="template_section">
<div class="template_logo_div template_modal">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
<div class="template_heading_section">
<h2 class="template_modal"><?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:'Your title here'); ?></h2>
<p class="template_modal">
<?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:' Start your newsletter with multiple visually striking images.
Start by replacing the full-width header and main images with your own, or use a solid color background.'); ?>
</p>
<a href="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" class="campaign_create_btn call_to_action">Call to action</a>
</div>
<div class="template_last">
<h5 class="template_modal"><?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:'My Company'); ?></h5>
<p class="template_modal"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:'You have received this email because you have subscribed to our newsletter.'); ?></p>
<a href="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:''); ?>" class="template_modal">Unsubscribe</a>
<div class="template_last_log">
<?php if(isset($campaign_template->logo_img) && $campaign_template->logo_img): ?>
<img src="<?php echo e(asset('uploads/'.$campaign_template->logo_img)); ?>" alt="">
<?php elseif(isset($campaign_template->logo_url) && $campaign_template->logo_url): ?>
<img src="<?php echo e($campaign_template->logo_url); ?>" alt="">
<?php else: ?>
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<!-- Button trigger modal -->
<input type="hidden" data-toggle="modal" data-target="#templateEditModal" id="templateEditModalbtn">
<div class="modal fade" id="templateEditModal" tabindex="-1" role="dialog" aria-labelledby="templateEditModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Template Edit</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="<?php echo e(route('customer.campaign.template.show.store')); ?>" method="post" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<input type="hidden" name="template_no" value="<?php echo e($template); ?>">
<div class="template_logo_modal">
<img src="<?php echo e(asset('images/logo-img.png')); ?>" alt="">
</div>
<nav>
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-upload_logo-tab" data-toggle="tab" href="#nav-regular" role="tab" aria-controls="nav-regular" aria-selected="true">Logo upload</a>
<a class="nav-item nav-link" id="nav-url-logo-tab" data-toggle="tab" href="#nav-a-b-Test" role="tab" aria-controls="nav-profile" aria-selected="false">Logo URL</a>
</div>
</nav>
<div class="form-group d-none" id="url-logo-input">
<label for="img">Logo url</label>
<input value="<?php echo e(isset($campaign_template->logo_url) && $campaign_template->logo_url?$campaign_template->logo_url:''); ?>" type="text" name="logo_url" class="form-control cus_info_d_none"
placeholder="logo url" autocomplete="off">
</div>
<div class="form-group" id="upload_logo-input">
<label for="profile">Logo</label>
<div class="input-group">
<div class="custom-file">
<input name="logo_image" type="file" class="custom-file-input cus_info_d_none">
<label class="custom-file-label" for="profile"><?php echo e(trans('customer.choose_file')); ?></label>
</div>
</div>
</div>
<?php if($template == 'one' || $template == 'two' || $template == 'three'): ?>
<div class="form-group">
<label for="img">Heading</label>
<input value="<?php echo e(isset($campaign_template->heading) && $campaign_template->heading?$campaign_template->heading:''); ?>" type="text" name="heading" class="form-control cus_info_d_none"
placeholder="heading" autocomplete="off">
</div>
<?php endif; ?>
<?php if($template == 'one' || $template == 'two' || $template == 'three' || $template == 'four'): ?>
<div class="template_shopping_img_modal">
<img src="<?php echo e(asset('images/shopping-img.png')); ?>" alt="">
</div>
<nav>
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="product_image_upload" data-toggle="tab" href="#nav-regular" role="tab" aria-controls="nav-regular" aria-selected="true">Product image upload</a>
<a class="nav-item nav-link" id="product_image_url" data-toggle="tab" href="#nav-a-b-Test" role="tab" aria-controls="nav-profile" aria-selected="false">Product image URL</a>
</div>
</nav>
<div class="form-group d-none" id="product_image_url_input">
<label for="img">Product Image</label>
<input value="<?php echo e(isset($campaign_template->product_image_url) && $campaign_template->product_image_url?$campaign_template->product_image_url:''); ?>" type="text" name="product_image_url" class="form-control cus_info_d_none"
placeholder="product image url" autocomplete="off">
</div>
<div class="form-group" id="product_image_upload_input">
<label for="profile">Product Image</label>
<div class="input-group">
<div class="custom-file">
<input name="product_image_upload" type="file" class="custom-file-input cus_info_d_none" id="profile">
<label class="custom-file-label" for="profile"><?php echo e(trans('customer.choose_file')); ?></label>
</div>
</div>
</div>
<?php endif; ?>
<?php if($template == 'two' || $template == 'three'): ?>
<nav>
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="first_product_image_upload" data-toggle="tab" href="#nav-regular" role="tab" aria-controls="nav-regular" aria-selected="true">First Product image upload</a>
<a class="nav-item nav-link" id="first_product_image_url" data-toggle="tab" href="#nav-a-b-Test" role="tab" aria-controls="nav-profile" aria-selected="false">First Product image URL</a>
</div>
</nav>
<div class="form-group d-none" id="first_product_image_url_input">
<label for="img">First Product Image</label>
<input value="<?php echo e(isset($campaign_template->first_product_image_url) && $campaign_template->first_product_image_url?$campaign_template->first_product_image_url:''); ?>" type="text" name="first_product_image_url" class="form-control cus_info_d_none"
placeholder="product image url" autocomplete="off">
</div>
<div class="form-group" id="first_product_image_upload_input">
<label for="profile">First Product Image</label>
<div class="input-group">
<div class="custom-file">
<input name="first_product_image_upload" type="file" class="custom-file-input cus_info_d_none" id="profile">
<label class="custom-file-label" for="profile"><?php echo e(trans('customer.choose_file')); ?></label>
</div>
</div>
</div>
<nav>
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="sec_product_image_upload" data-toggle="tab" href="#nav-regular" role="tab" aria-controls="nav-regular" aria-selected="true">Second Product image upload</a>
<a class="nav-item nav-link" id="sec_product_image_url" data-toggle="tab" href="#nav-a-b-Test" role="tab" aria-controls="nav-profile" aria-selected="false">Second Product image URL</a>
</div>
</nav>
<div class="form-group d-none" id="sec_product_image_url_input">
<label for="img">Second Product Image</label>
<input value="<?php echo e(isset($campaign_template->sec_product_image_url) && $campaign_template->sec_product_image_url?$campaign_template->sec_product_image_url:''); ?>" type="text" name="sec_product_image_url" class="form-control cus_info_d_none"
placeholder="product image url" autocomplete="off">
</div>
<div class="form-group" id="sec_product_image_upload_input">
<label for="profile">Second Product Image</label>
<div class="input-group">
<div class="custom-file">
<input name="sec_product_image_upload" type="file" class="custom-file-input cus_info_d_none" id="profile">
<label class="custom-file-label" for="profile"><?php echo e(trans('customer.choose_file')); ?></label>
</div>
</div>
</div>
<?php endif; ?>
<div class="form-group">
<label for="img">Your title</label>
<input value="<?php echo e(isset($campaign_template->campaign_title) && $campaign_template->campaign_title?$campaign_template->campaign_title:''); ?>" type="text" name="campaign_title" class="form-control" id="campaign_title"
placeholder="your title" autocomplete="off">
</div>
<div class="form-group d-none" id="campaign_title_cus_info">
<button type="button" class="btn btn-sm btn-primary btn_size_small" id="campaign_title_cus_first_name">First name</button>
<button type="button" class="btn btn-sm btn-primary btn_size_small" id="campaign_title_cus_last_name">Last name</button>
<button type="button" class="btn btn-sm btn-primary btn_size_small" id="campaign_title_cus_email">Email</button>
<button type="button" class="btn btn-sm btn-danger btn_size_small" id="campaign_title_cus_info_hide"><i class="fa fa-times"></i></button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_title_cus_zip">Zip code</button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_title_cus_address">Address</button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_title_cus_state">State</button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_title_cus_city">City</button>
</div>
<div class="form-group">
<label for="img">Your description</label>
<textarea name="campaign_description" id="campaign_description" placeholder="your description" autocomplete="off" class="form-control"><?php echo e(isset($campaign_template->campaign_description) && $campaign_template->campaign_description?$campaign_template->campaign_description:''); ?></textarea>
</div>
<div class="form-group d-none" id="campaign_description_cus_info">
<button type="button" class="btn btn-sm btn-primary btn_size_small" id="campaign_description_cus_first_name">First name</button>
<button type="button" class="btn btn-sm btn-primary btn_size_small" id="campaign_description_cus_last_name">Last name</button>
<button type="button" class="btn btn-sm btn-primary btn_size_small" id="campaign_description_cus_email">Email</button>
<button type="button" class="btn btn-sm btn-danger btn_size_small" id="campaign_description_cus_info_hide"><i class="fa fa-times"></i></button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_description_cus_zip">Zip code</button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_description_cus_address">Address</button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_description_cus_state">State</button>
<button type="button" class="btn btn-sm btn-primary mt-1 btn_size_small" id="campaign_description_cus_city">City</button>
</div>
<div class="form-group">
<label for="img">Call to action link</label>
<input value="<?php echo e(isset($campaign_template->campaign_call_to_action) && $campaign_template->campaign_call_to_action?$campaign_template->campaign_call_to_action:''); ?>" type="text" name="campaign_call_to_action" class="form-control cus_info_d_none"
placeholder="Call to action link" autocomplete="off">
</div>
<div class="form-group">
<label for="img">Your company name</label>
<input value="<?php echo e(isset($campaign_template->company_name) && $campaign_template->company_name?$campaign_template->company_name:''); ?>" type="text" name="company_name" class="form-control cus_info_d_none"
placeholder="your company name" autocomplete="off">
</div>
<div class="form-group">
<label for="">Shot description</label>
<textarea name="email_description" placeholder="Short company description" autocomplete="off" class="form-control cus_info_d_none"><?php echo e(isset($campaign_template->email_description) && $campaign_template->email_description?$campaign_template->email_description:''); ?></textarea>
</div>
<div class="form-group">
<label for="">Unsubscribe Link</label>
<input value="<?php echo e(isset($campaign_template->unsubscribe_link) && $campaign_template->unsubscribe_link?$campaign_template->unsubscribe_link:route('unsubscribe',['email'=>'{email}'])); ?>" type="text" name="unsubscribe_link" class="form-control cus_info_d_none"
placeholder="Unsubscribe Link" autocomplete="off">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Save</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?>
<script>
$(document).on('click', '.template_modal', function(e){
e.preventDefault();
$('#templateEditModalbtn').trigger('click');
});
$(document).on('click', '#nav-upload_logo-tab', function(e){
e.preventDefault();
$('#upload_logo-input').removeClass('d-none');
$('#url-logo-input').addClass('d-none');
});
$(document).on('click', '#nav-url-logo-tab', function(e){
e.preventDefault();
$('#upload_logo-input').addClass('d-none');
$('#url-logo-input').removeClass('d-none');
});
$(document).on('click', '#product_image_upload', function(e){
e.preventDefault();
$('#product_image_url_input').addClass('d-none');
$('#product_image_upload_input').removeClass('d-none');
});
$(document).on('click', '#product_image_url', function(e){
e.preventDefault();
$('#product_image_url_input').removeClass('d-none');
$('#product_image_upload_input').addClass('d-none');
});
$(document).on('click', '#first_product_image_url', function(e){
e.preventDefault();
$('#first_product_image_url_input').removeClass('d-none');
$('#first_product_image_upload_input').addClass('d-none');
});
$(document).on('click', '#first_product_image_upload', function(e){
e.preventDefault();
$('#first_product_image_url_input').addClass('d-none');
$('#first_product_image_upload_input').removeClass('d-none');
});
$(document).on('click', '#sec_product_image_url', function(e){
e.preventDefault();
$('#sec_product_image_url_input').removeClass('d-none');
$('#sec_product_image_upload_input').addClass('d-none');
});
$(document).on('click', '#sec_product_image_upload', function(e){
e.preventDefault();
$('#sec_product_image_url_input').addClass('d-none');
$('#sec_product_image_upload_input').removeClass('d-none');
});
$(document).on('click', '#campaign_title', function(e){
e.preventDefault();
$('#campaign_title_cus_info').removeClass('d-none')
$('#campaign_description_cus_info').addClass('d-none')
});
$(document).on('click', '#campaign_description', function(e){
e.preventDefault();
$('#campaign_description_cus_info').removeClass('d-none')
$('#campaign_title_cus_info').addClass('d-none')
});
$(document).on('click', '#campaign_title_cus_info_hide', function(e){
e.preventDefault();
$('#campaign_title_cus_info').addClass('d-none')
});
$(document).on('click', '#campaign_description_cus_info_hide', function(e){
e.preventDefault();
$('#campaign_description_cus_info').addClass('d-none')
});
$(document).on('click', '#campaign_title_cus_first_name', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{first_name}');
});
$(document).on('click', '#campaign_title_cus_last_name', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{last_name}');
});
$(document).on('click', '#campaign_title_cus_email', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{email}');
});
$(document).on('click', '#campaign_title_cus_zip', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{zip_code}');
});
$(document).on('click', '#campaign_title_cus_address', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{address}');
});
$(document).on('click', '#campaign_title_cus_state', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{state}');
});
$(document).on('click', '#campaign_title_cus_city', function(e){
e.preventDefault();
$("#campaign_title").val($("#campaign_title").val() + '{city}');
});
$(document).on('click', '#campaign_description_cus_first_name', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{first_name}');
});
$(document).on('click', '#campaign_description_cus_last_name', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{last_name}');
});
$(document).on('click', '#campaign_description_cus_email', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{email}');
});
$(document).on('click', '#campaign_description_cus_zip', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{zip_code}');
});
$(document).on('click', '#campaign_description_cus_address', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{address}');
});
$(document).on('click', '#campaign_description_cus_state', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{state}');
});
$(document).on('click', '#campaign_description_cus_city', function(e){
e.preventDefault();
$("#campaign_description").val($("#campaign_description").val() + '{city}');
});
$(document).on('click', '.cus_info_d_none', function(e){
console.log(e)
$('#campaign_title_cus_info').addClass('d-none');
$('#campaign_description_cus_info').addClass('d-none');
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/picomail.picotech.app/public_html/resources/views/customer/campaign/template.blade.php ENDPATH**/ ?>
|