2024-04-16 09:58:24 +00:00
|
|
|
@extends('backend.template')
|
|
|
|
@section('content')
|
2024-04-24 04:32:18 +00:00
|
|
|
<!-- start page title -->
|
|
|
|
<div class="row">
|
2024-04-16 09:58:24 +00:00
|
|
|
<div class="col-12">
|
2024-04-24 04:32:18 +00:00
|
|
|
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
|
|
|
|
<h4 class="mb-sm-0">Add 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">Add Campaign</li>
|
|
|
|
</ol>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</div>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</div>
|
|
|
|
<!-- end page title -->
|
|
|
|
<form action="{{ route('campaignarticles.store') }}" id="storeCustomForm" method="POST">
|
2024-04-16 09:58:24 +00:00
|
|
|
@csrf
|
|
|
|
<div class="row">
|
2024-04-24 04:32:18 +00:00
|
|
|
<div class="col-lg-9">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">{{ createText('title', 'title', 'Title') }}</div>
|
|
|
|
<div class="col-lg-12">{{ createText('sub_title', 'sub_title', 'Sub Title') }}</div>
|
|
|
|
<div class="col-lg-12 pb-2">{{ createTextarea('text', 'text ckeditor-classic', 'Description') }}
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">{{ createText('link', 'link', 'Link') }}</div>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</div>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h4 class="card-title mb-0">Attributes</h4>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
{{ createCustomSelect('tbl_campaigns', 'title', 'campaign_id', '', 'Campaigns Id', 'campaigns_id', 'form-control select2', 'status<>-1') }}
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
|
|
{{ createCustomSelect('tbl_campaignarticles', 'title', 'campaignarticle_id', '', 'Parent Article', 'parent_article', 'form-control select2', 'status<>-1') }}
|
|
|
|
</div>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</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') }}</div>
|
|
|
|
<div class="col-lg-12 pb-2">{{ createImageInput('thumb', 'Thumb') }}</div>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<?php createButton('btn-primary btn-store', '', 'Submit'); ?>
|
|
|
|
<?php createButton('btn-danger btn-cancel', '', 'Cancel', route('campaignarticles.index')); ?>
|
2024-04-16 09:58:24 +00:00
|
|
|
</div>
|
2024-04-24 04:32:18 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
@endsection
|