140 lines
7.5 KiB
PHP
140 lines
7.5 KiB
PHP
@extends('backend.template')
|
|
@section('content')
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
|
|
<h4 class="mb-sm-0">Edit Campaign</h4>
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
|
|
<li class="breadcrumb-item active">Edit Campaign</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
<form action="{{route('campaigns.update',[$data->campaign_id])}}" id="updateCustomForm" method="POST" >
|
|
@csrf <input type=hidden name='campaign_id' value='{{$data->campaign_id}}'/>
|
|
<div class="row">
|
|
<div class="col-lg-9">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-8">{{createText("title","title","Title",'',$data->title)}}</div>
|
|
<div class="col-lg-2 pb-2">{{createDate("starts","Starts",'',$data->starts)}}</div>
|
|
<div class="col-lg-2 pb-2">{{createDate("ends","Ends",'',$data->ends)}}</div>
|
|
<div class="border border-dashed"></div>
|
|
<div class="col-lg-12 pb-4">{{createTextarea("description","description","Description",$data->description,10)}}</div>
|
|
<div class="border border-dashed"></div>
|
|
<div class="col-lg-12 pb-2">{{createTextarea("details","details ","Details",$data->details,10)}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title mb-0">Message</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-6">{{createTextArea("success_message","success_message","Success Message",$data->success_message,10)}}</div>
|
|
<div class="col-lg-6">{{createTextArea("sms_message","sms_message","Sms Message",$data->sms_message,10)}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title mb-0">
|
|
SEO
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
{{createText("seo_title","seo_title","Seo Title",'',$data->seo_title)}}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">
|
|
{{createPlainTextArea("seo_keywords",'',"Seo Keywords",$data->seo_keywords)}}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">
|
|
{{createPlainTextArea("seo_description",'',"Seo Description",$data->seo_description)}}
|
|
</div>
|
|
<div class="col-lg-12 pb-2">
|
|
{{createPlainTextArea("meta_tags",'',"Meta Tags",$data->meta_tags)}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title mb-0">
|
|
Additional Settings
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 pb-2">
|
|
{{createPlainTextArea("notify_emails",'pills',"Notify Emails [ Comma(,) Seperate Emails ]",$data->notify_emails)}}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-3">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
{{createText("coupon_codes","coupon_codes","Coupon Codes",'',$data->coupon_codes)}}
|
|
{{createText("offered_choices","offered_choices","Offered Choices",'',$data->offered_choices)}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title mb-0">Images</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12 pb-2">{{createImageInput("cover_photo","Cover Photo",'',$data->cover_photo)}}</div>
|
|
<div class="border border-dashed mb-3"></div>
|
|
<div class="col-lg-12 pb-2">{{createImageInput("thumb","Thumb",'',$data->thumb)}}</div>
|
|
<div class="border border-dashed mb-3"></div>
|
|
<div class="col-lg-12 pb-2">{{createImageInput("og_image","Og Image",'',$data->og_image)}}</div>
|
|
<div class="col-lg-12 pb-2">{{createImageInput("pass_layout","Pass Layout",'',$data->pass_layout)}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="card-title mb-0">QR Placement (X,Y)</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-6">{{createText("id_position","id_position","ID Position","",$data->id_position)}}</div>
|
|
<div class="col-lg-6">{{createText("name_position","name_position","Name Position","",$data->name_position)}}</div>
|
|
<div class="col-lg-6">{{createText("email_position","email_position","Email Position","",$data->email_position)}}</div>
|
|
<div class="col-lg-6">{{createText("qr_position","qr_position","QR Position","",$data->qr_position)}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="card-title mb-0">Google Sheets Integration</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">{{createText("google_sheet_id","google_sheet_id","Google Sheets ID","",$data->google_sheet_id)}}</div>
|
|
<div class="col-lg-12">{{createText("google_sheet_worksheet","google_sheet_worksheet","Worksheet Name","",$data->google_sheet_worksheet)}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12"><?php createButton("btn-primary btn-update","","Update"); ?>
|
|
<?php createButton("btn-danger btn-cancel","","Cancel",route('campaigns.index')); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
@endsection
|