FIX_Minor Issues fixes
This commit is contained in:
parent
f11ddd5cec
commit
8b9f6ae414
@ -2073,7 +2073,7 @@ class MasterController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
$data = $nhanceBranchModel->where('is_active', 1)->findAll();
|
||||
$data = $nhanceBranchModel->where('is_active', 1)->orderBy('id', 'DESC')->findAll();
|
||||
return $this->loadLayout('nhance_branch_list', ['data' => $data]);
|
||||
|
||||
} elseif ($method === 'delete') {
|
||||
@ -2156,7 +2156,7 @@ class MasterController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
$data = $vehicleTypeModel->where('is_active', 1)->findAll();
|
||||
$data = $vehicleTypeModel->where('is_active', 1)->orderBy('id', 'DESC')->findAll();
|
||||
return $this->loadLayout('vehicle_type_master_list', ['data' => $data]);
|
||||
|
||||
} elseif ($method === 'delete') {
|
||||
@ -2239,7 +2239,7 @@ class MasterController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
$data = $rtoModel->where('is_active', 1)->findAll();
|
||||
$data = $rtoModel->where('is_active', 1)->orderBy('id', 'DESC')->findAll();
|
||||
return $this->loadLayout('rto_master_list', ['data' => $data]);
|
||||
|
||||
} elseif ($method === 'delete') {
|
||||
|
||||
@ -19,10 +19,10 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(isset($data)) { ?>
|
||||
<?php if(isset($data)) { $slno = 1; ?>
|
||||
<?php foreach($data as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-dark"> <?= esc($index + 1); ?></td>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $row['branch_name']; ?></td>
|
||||
<!-- <td>
|
||||
<span class="<?php if($row['is_active'] == 1){ echo 'badge badge-primary'; }else{ echo 'badge badge-danger'; } ?>">
|
||||
@ -254,6 +254,7 @@
|
||||
} else if(type == 'remove'){
|
||||
toastr.success(response.message, 'Success');
|
||||
if(el) $(el).closest('tr').remove();
|
||||
window.location.reload();
|
||||
} else if(type == 'submit'){
|
||||
toastr.success(response.message, 'Success');
|
||||
var myModal = new bootstrap.Modal(document.getElementById('con-close-modal'));
|
||||
|
||||
@ -21,10 +21,10 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(isset($data)) { ?>
|
||||
<?php if(isset($data)) { $slno = 1; ?>
|
||||
<?php foreach($data as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-dark"> <?= esc($index + 1); ?></td>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $row['rto_name']; ?></td>
|
||||
<td><?= $row['rto_code']; ?></td>
|
||||
<td><?= $row['rto_state']; ?></td>
|
||||
@ -216,6 +216,7 @@
|
||||
} else if(type == 'remove'){
|
||||
toastr.success(response.message, 'Success');
|
||||
if(el) $(el).closest('tr').remove();
|
||||
window.location.reload();
|
||||
} else if(type == 'submit'){
|
||||
toastr.success(response.message, 'Success');
|
||||
var myModal = new bootstrap.Modal(document.getElementById('con-close-modal'));
|
||||
|
||||
@ -19,10 +19,10 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(isset($data)) { ?>
|
||||
<?php if(isset($data)) { $slno = 1; ?>
|
||||
<?php foreach($data as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-dark"> <?= esc($index + 1); ?></td>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $row['vehicle_type']; ?></td>
|
||||
<!-- <td>
|
||||
<span class="<?php if($row['is_active'] == 1){ echo 'badge badge-primary'; }else{ echo 'badge badge-danger'; } ?>">
|
||||
@ -194,6 +194,7 @@
|
||||
} else if(type == 'remove'){
|
||||
toastr.success(response.message, 'Success');
|
||||
if(el) $(el).closest('tr').remove();
|
||||
window.location.reload();
|
||||
} else if(type == 'submit'){
|
||||
toastr.success(response.message, 'Success');
|
||||
var myModal = new bootstrap.Modal(document.getElementById('con-close-modal'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user