132 lines
5.6 KiB
PHP
132 lines
5.6 KiB
PHP
@extends('layouts.admin.admin')
|
|
|
|
@section('page-specific-styles')
|
|
<link rel="stylesheet" href="{{ asset('css/jquery.dataTables.min.css') }}">
|
|
<link rel="stylesheet" href="{{ asset('css/TableTools.min.css') }}" />
|
|
<link rel="stylesheet" href="{{ asset('css/lightbox.css') }}" />
|
|
@endsection
|
|
|
|
@section('title', 'Campaign')
|
|
|
|
@section('content')
|
|
|
|
<div class="nk-block-head">
|
|
<div class="nk-block-head-between flex-wrap gap g-2">
|
|
<div class="nk-block-head-content">
|
|
<h2 class="nk-block-title">Campaign Lists </h1>
|
|
<nav>
|
|
<ol class="breadcrumb breadcrumb-arrow mb-0">
|
|
<li class="breadcrumb-item"><a href="#">Home</a></li>
|
|
<li class="breadcrumb-item"><a href="#">Campaign Lists</a></li>
|
|
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
<div class="nk-block-head-content">
|
|
<ul class="d-flex">
|
|
<li><a href="{{ route('campaign.create') }}" class="btn btn-primary d-none d-md-inline-flex"><em
|
|
class="icon ni ni-plus"></em><span>Add Campaign</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="nk-block">
|
|
|
|
|
|
|
|
|
|
<div class="card mt-3 mb-2">
|
|
<div class="card-body">
|
|
<div class="dataTable-wrapper dataTable-loading fixed-columns">
|
|
<table class="datatable-init table table-border" data-nk-container="table-responsive" id="CustomTable">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th data-sortable="" style="width: 2%;"><span class="overline-title">SN</span></th>
|
|
<th data-sortable="" style="width: 25%;"><span class="overline-title">Name</th>
|
|
<th data-sortable="" style="width: 15%;"><span class="overline-title">Banner</th>
|
|
{{-- <th data-sortable="" style="width: 15%;"><span class="overline-title">Detail</th> --}}
|
|
<th data-sortable="" style="width: 8%;"><span class="overline-title">Starts</th>
|
|
<th data-sortable="" style="width: 8%;"><span class="overline-title">End</th>
|
|
<th data-sortable="" style="width: 20%;"><span class="overline-title">Alias</th>
|
|
<th data-sortable="" style="width: 10%;"><span class="overline-title">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@each('campaign.partials.table', $campaigns, 'campaign')
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
{{-- User Registration Found --}}
|
|
<div class="modal fade alias_modal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title align-self-center mt-0 text-center" id="exampleModalLabel">Update Alias <span
|
|
class="student_name"></span></h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form action="{{ route('campaign.aliasEdit') }}" method="GET"
|
|
class="form form-validate floating-label">
|
|
<input type="hidden" class="campaign_id" value="" name="campaign_id" id="">
|
|
<!-- Tab panes -->
|
|
<div class="tab-content">
|
|
<div class="tab-pane p-3 active" id="personal" role="tabpanel">
|
|
<h5 class="pt-1">Alias: </h5>
|
|
<div class="row">
|
|
<div class="col-md-3 mt-2">
|
|
<input type="text" name="alias" class="form-control campaign_alias"
|
|
value="" required>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
<!-- Tab panes -->
|
|
|
|
<hr>
|
|
<div class="row mt-2 justify-content-center">
|
|
<div class="form-group mr-1">
|
|
<div>
|
|
<input type="submit" name="pageSubmit"
|
|
class="btn btn-danger waves-effect waves-light" value="Save Changes">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div><!-- /.modal-content -->
|
|
</div><!-- /.modal-dialog -->
|
|
</div>
|
|
|
|
@stop
|
|
|
|
@section('page-specific-scripts')
|
|
<script src="{{ asset('js/datatables.min.js') }}"></script>
|
|
<script src="{{ asset('js/lightbox.js') }}"></script>
|
|
<script type="text/javascript">
|
|
$(document).on('click', '.btn-alias-edit', function(e) {
|
|
|
|
var campaign_id = $(this).data('campaign_id');
|
|
var alias = $(this).data('alias');
|
|
let campaign_update = $('.campaign_id').val(campaign_id);
|
|
let alias_update = $('.campaign_alias').val(alias);
|
|
$('.alias_modal').modal('show');
|
|
|
|
});
|
|
</script>
|
|
@endsection
|