first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
@@ -0,0 +1,59 @@
<div class="row mt-3 quote-estimate-form">
<div class="col-12 col-sm-3">
<div class="form-group mb-3">
<label for="price">Price</label>
<input type="text" class="form-control" id="address" name="price" placeholder="Enter price">
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group mb-3">
<label for="surgePrice">Surge price</label>
<input type="text" class="form-control" id="surgePrice" name="surge_price" placeholder="Enter surge price">
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group mb-3">
<label for="tripTime">Trip time</label>
<input type="text" class="form-control" id="tripTime" name="trip_time" placeholder="Enter trip time">
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group mb-3">
<label for="distance">Distance</label>
<input type="text" class="form-control" id="distance" name="distance" placeholder="Enter distance">
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group mb-3">
<label for="dayOfWeek">Day of week</label>
<input type="text" class="form-control" id="dayOfWeek" name="day_of_week" placeholder="Enter day of week">
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group mb-3">
<label for="">&nbsp;</label>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="isHoliday" name="is_holiday">
<label class="custom-control-label" for="isHoliday">Holiday</label>
</div>
</div>
</div>
<div class="col-12">
<div class="weather-wrapper">
<div class="d-flex flex-row align-items-center justify-content-between">
<label>Weather</label>
<button id="btn-add-weather" class="btn btn-outline-primary" type="button">Add</button>
</div>
<div class="row weather-options"></div>
</div>
</div>
</div>
<script src="/assets/js/pages/quote_estimates/form.js"></script>
@@ -0,0 +1,36 @@
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div class="row align-items-center">
<div class="col-12">
<div class="page-title-box">
<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">
<h4 class="header-title">Create new quote estimate</h4>
<form action="/quote_estimates/createQuoteEstimate" method="post">
<?php include '_form.php'; ?>
<div class="row">
<div class="col-12 col-sm-3 col-lg-2 offset-sm-9 offset-lg-10 text-right mt-3">
<div class="btn-group" role="group">
<button type="submit" class="btn btn-primary mr-2">Create</button>
<a href="/quote_estimates" class="btn btn-danger">Cancel</a>
</div>
</div>
</div>
</form>
</div> <!-- end card-body -->
</div> <!-- end card -->
</div><!-- end col -->
</div>
<!-- end row-->
</div> <!-- container -->
@@ -0,0 +1,36 @@
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div class="row align-items-center">
<div class="col-12">
<div class="page-title-box">
<h4 class="page-title">Quotes estimate</h4>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h4 class="header-title">Edit quote estimate</h4>
<form action="/quotes_estimates/editQuoteEstimate" method="post">
<?php include '_form.php'; ?>
<div class="row">
<div class="col-12 col-sm-3 col-lg-2 offset-sm-9 offset-lg-10 text-right mt-3">
<div class="btn-group" role="group">
<button type="submit" class="btn btn-primary mr-2">Edit</button>
<a href="/quotes_estimates" class="btn btn-danger">Cancel</a>
</div>
</div>
</div>
</form>
</div> <!-- end card-body -->
</div> <!-- end card -->
</div><!-- end col -->
</div>
<!-- end row-->
</div> <!-- container -->
@@ -0,0 +1,79 @@
<!-- 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 -->