Files
dev-chiefworks f76abffdcd first commit
2022-05-31 16:21:53 -04:00

80 lines
3.0 KiB
PHP

<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div class="row align-items-center">
<div class="col-12">
<div class="page-title-box">
<div class="page-title-right text-right action">
<a href="/quote_estimates/create" class="btn btn-success">New quote estimate</a>
</div>
<h4 class="page-title">Quote estimates</h4>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<!-- <div class="row">
<form class="search-block form-inline" action="/quote_estimate/search" method="post">
<div class="form-group mr-sm-3">
<label for="searchText" class="sr-only">Search</label>
<input class="form-control search-input" id="searchText" name="search_text" type="text" placeholder="Search text" />
</div>
<div class="form-group country-selector mr-sm-3">
<label for="filter_country" class="sr-only">Country</label>
<select class="form-control select2" data-toggle="select2" name="filter_country">
<option>Select country</option>
<?php foreach($countries as $key=>$value): ?>
<option value="<?php echo $key ?>"><?php echo $value ?></option>
<?php endforeach ?>
</select>
</div>
<button class="btn btn-primary btn-search" type="submit">Search</button>
</form>
</div> -->
<div class="table-responsive-sm">
<table id="trips-datatable" class="table table-sm table-centered mb-0" width="100%">
<thead>
<tr>
<th>Id</th>
<th>Price</th>
<th>Time</th>
<th>Distance</th>
<th>Created at</th>
<th class="actions">Actions</th>
</tr>
</thead>
<tbody class="table-striped">
<?php foreach($list as $item): ?>
<tr>
<td><?php echo $item['id'] ?></td>
<td><?php echo $item['price'] ?></td>
<td><?php echo $item['trip_time'] ?></td>
<td><?php echo $item['distance'] ?></td>
<td><?php echo $item['created_at'] ?></td>
<td class="actions">
<a href="/quote_estimates/<?php echo $item['id']; ?>/edit" class="btn btn-primary">View</a>
<button type="button" class="btn btn-danger btn-remove">Remove</button>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
<?php echo $pagination ?>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
<!-- end row-->
</div> <!-- container -->