49 lines
2.6 KiB
PHP
49 lines
2.6 KiB
PHP
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row" style="padding-bottom: 10px;">
|
|
<div class="col-6" style="align-self: center;">
|
|
<h4 class="header-title" style="position: relative;">Files</h4>
|
|
</div>
|
|
|
|
</div>
|
|
<table class="table table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table">
|
|
<thead class="bg-light">
|
|
<tr>
|
|
<th class="font-weight-medium">SNO</th>
|
|
<th class="font-weight-medium">File name</th>
|
|
<th class="font-weight-medium">Client</th>
|
|
<th class="font-weight-medium">policy</th>
|
|
<th class="font-weight-medium">User/Time</th>
|
|
<th class="font-weight-medium">Status</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="font-12">
|
|
<?php
|
|
if(isset($fileList))
|
|
{
|
|
foreach ($fileList as $key => $file) { //print_r((json_decode($file['reason'])));
|
|
// $reason = json_decode(($file['reason']));
|
|
// $reason = "{'date':'value data kbckl kcn/aksl'}";
|
|
// echo $reason;
|
|
?>
|
|
|
|
<tr>
|
|
<td><b><?php echo ($key + 1)?></b></td>
|
|
<td><?php echo $file['file_name']?></td>
|
|
<td><?php echo $file['short_name']?></td>
|
|
<td><?php echo $file['policy_name']?></td>
|
|
<td><?php echo fancy_date_time_format($file['created_at']).' by <strong>'.$file['first_name'].'</strong>'?></td>
|
|
<td><?php echo $file['status']; if($file['status'] == 'failed')
|
|
{
|
|
echo "<span class='col-xl-3 col-lg-4 col-sm-6'> <i class='fe-alert-circle' data-toggle='modal' data-target='#file-err-modal' data-err=".$file['id']."></i></span>";
|
|
}?></td>
|
|
</tr>
|
|
<?php }}?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div><!-- end col -->
|