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

124 lines
5.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="/quotes/create" class="btn btn-success">New quote</a>
</div>
<h4 class="page-title">Quotes</h4>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<form class="search-block" action="/quotes/search" method="post">
<div class="row">
<div class="col-12 col-sm-6">
<div class="form-group">
<label for="searchText">Location start</label>
<input class="form-control search-input" id="searchText" name="location_start" type="text" placeholder="Enter location start" />
</div>
</div>
<div class="col-12 col-sm-6">
<div class="form-group">
<label for="searchText">Location end</label>
<input class="form-control search-input" id="searchText" name="location_end" type="text" placeholder="Enter location end" />
</div>
</div>
<div class="col-12 col-sm-6">
<div class="form-group">
<label for="searchText">Created</label>
<input type="text" class="form-control date" name="duration" id="travel_date" data-toggle="date-picker" data-cancel-class="btn-warning" name="created_at">
</div>
</div>
<div class="col-12 col-sm-6">
<label for="transport_provider_id">Transport provider</label>
<select class="form-control select2" data-toggle="select2" name="transport_provider_id">
<option>Select</option>
<optgroup label="Public transport">
<option value="AZ">Bus</option>
<option value="CO">Trains</option>
</optgroup>
</select>
</div>
<div class="col-12 col-sm-3 col-lg-2">
<label for="cost_frorm">Cost</label>
<input class="form-control" id="cost_form" name="cost_from" type="text" placeholder="From" />
</div>
<div class="col-12 col-sm-3 col-lg-2">
<label>&nbsp;</label>
<input class="form-control" id="cost_to" name="cost_to" type="text" placeholder="To" />
</div>
<div class="col-12 sol-sm-3 col-lg-2 offset-sm-9 offset-lg-10 text-right">
<button type="button" class="btn btn-danger">Reset</button>
<button class="btn btn-primary btn-search" type="submit">Search</button>
</div>
</div>
</form>
<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>Transport</th>
<th>Automation</th>
<th>Cost raw</th>
<th>Cost</th>
<th>Member</th>
<th>Location start</th>
<th>Location end</th>
<th>Group</th>
<th>Created at</th>
<th>Completed at</th>
<th>Travel date</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['transport_provider_id'] ?></td>
<td><?php echo $item['automation_id'] ?></td>
<td><?php echo $item['cost_raw'] ?></td>
<td><?php echo $item['cost'] ?></td>
<td><?php echo $item['member_id'] ?></td>
<td><?php echo $item['location_start_id'] ?></td>
<td><?php echo $item['location_end_id'] ?></td>
<td><?php echo $item['quote_group_id'] ?></td>
<td><?php echo $item['created'] ?></td>
<td><?php echo $item['completed'] ?></td>
<td><?php echo $item['travel_date'] ?></td>
<td class="actions">
<a href="/quotes/<?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 -->