added expiry date to shortcode crud plus bug fixes

This commit is contained in:
Kwesi Banson
2024-03-08 09:40:11 +00:00
parent 7b3a29ca53
commit acda110be1
7 changed files with 57 additions and 11 deletions

View File

@@ -37,7 +37,7 @@
</div>
<div class="form-group">
<div class="col-md-12" style="padding-bottom: 5px">
<label for="tollFree">Status</label>
<label for="tollFree">Toll Free</label>
<select name="toll_free" id="tollFree" class="form-control" required style="width: 100%;">
<option value="YES">YES</option>
<option value="NO">NO</option>
@@ -45,7 +45,7 @@
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<div class="col-md-6">
<div class='input-group date' id='myDatepicker22' style="padding-bottom: 5px;">
<label for="launchDate">Launch Date</label>
<input type="text" class="form-control" name="launch_date" id="launchDate" required >
@@ -54,6 +54,15 @@
</div>
</div>
</div>
<div class="col-md-6">
<div class='input-group date' id='myDatepicker223' style="padding-bottom: 5px;">
<label for="expiryDate">Expiry Date</label>
<input type="text" class="form-control" name="expiry_date" id="expiryDate" required >
<div class="input-group-addon">
<span class="fa fa-calendar"></span>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-12" style="padding-bottom: 5px">

View File

@@ -5,12 +5,12 @@
<tr class="headings">
{{-- <th>#</th> --}}
<th class="column-title">Name</th>
<th class="column-title">Code</th>
<th class="column-title">Code</th>
<th class="column-title">Network</th>
<th class="column-title">Toll Free</th>
<th class="column-title">Status</th>
<th class="column-title">Remarks</th>
<th class="column-title">Launch Date</th>
<th class="column-title">Expiry Date</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
@@ -29,8 +29,8 @@
<td class="mes-td col-md-2">{{ $row->network }}</td>
<td class="mes-td col-md-1">{{ $row->toll_free }}</td>
<td class="mes-td col-md-1">{{ $row->status }}</td>
<td class="mes-td col-md-2">{{ $row->remarks }}</td>
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->launch_date)) }}</td>
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->expiry_date)) }}</td>
<td class="last col-md-1" style="width: 100px;">
<span>
<a href="" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i></a>

View File

@@ -9,8 +9,9 @@
<th class="column-title">Network/Country</th>
<th class="column-title">Toll Free</th>
<th class="column-title">Status</th>
<th class="column-title">Remarks</th>
<!-- <th class="column-title">Remarks</th> -->
<th class="column-title">Launch Date</th>
<th class="column-title">Expiry Date</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
@@ -31,6 +32,7 @@
<td class="mes-td col-md-1">{{ $row->status }}</td>
<td class="mes-td col-md-2">{{ $row->remarks }}</td>
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->launch_date)) }}</td>
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->expiry_date)) }}</td>
<td class="last col-md-1" style="width: 100px;">
<span>
<a href="" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i></a>

View File

@@ -10,6 +10,7 @@
<th class="column-title">Toll Free</th>
<th class="column-title">Status</th>
<th class="column-title">Launch Date</th>
<th class="column-title">Expiry Date</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
@@ -28,8 +29,8 @@
<td class="mes-td col-md-2">{{ $row->network }}</td>
<td class="mes-td col-md-1">{{ $row->toll_free }}</td>
<td class="mes-td col-md-1">{{ $row->status }}</td>
<td class="mes-td col-md-2">{{ $row->remarks }}</td>
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->launch_date)) }}</td>
<td class="mes-td col-md-1" style="width: 100px;">{{ date('d-m-Y', strtotime($row->exipiry_date)) }}</td>
<td class="last col-md-1" style="width: 100px;">
<span>
<a href="" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i></a>