Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- ?>
- <!DOCTYPE html>
- <html>
- <? $this->load->view('components/old_head') ?>
- <body>
- <? $this->load->view('components/topnav') ?>
- <div class="wrapper">
- <? $this->load->view('sidebar') ?>
- <div class="main">
- <div class="content with-top-banner">
- <div class="content-header no-mg-top">
- <i class="fa fa-newspaper-o"></i>
- <div class="content-header-title">Transaksi Terakhir</div>
- </div>
- <div class="panel">
- <div class="row">
- <div class="col-md-12">
- <div class="content-box">
- <div class="box-header">
- <h3 class="box-title">Transaksi Terakhir Custumer</h3>
- </div>
- <!-- /.box-header -->
- <div class="box-body">
- <span class="label label-info">Search</span> =
- <b><?php echo $Mencari[0]['jumlah']; ?></b>   
- <span class="label label-info">Succeed</span> =
- <b><?php echo $Berhasil[0]['jumlah']; ?></b>   
- <span class="label label-info">Start</span> =
- <b><?php echo $Memulai[0]['jumlah']; ?></b>   
- <span class="label label-success">Finish</span> =
- <b><?php echo $Selesai[0]['jumlah']; ?></b>   
- <span class="label label-danger">Canceled</span> =
- <b><?php echo $Dibatalkan[0]['jumlah']; ?></b>   
- <span class="label label-danger">Rejected</span> =
- <b><?php echo $Ditolak[0]['jumlah']; ?></b>   
- <br><br>
- <div class="mb-3">
- </div>
- <table id="example1" class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>Transaction ID</th>
- <th>Fitur Order</th>
- <th>Customer</th>
- <th>Status Customer</th>
- <th>Phone number</th>
- <th>Driver</th>
- <th>Status</th>
- <th>Pembayaran</th>
- <th>Waktu Order</th>
- </tr>
- </thead>
- <tbody>
- <?php
- // var_dump($transaksiDriver)
- foreach ($transaksi as $value) {
- ?>
- <tr>
- <td><?php echo $value->nomor; ?></td>
- <td><?php echo $value->fitur; ?></td>
- <td><?php echo $value->nama_depan . " " . rtrim($value->nama_belakang); ?></td>
- <td><?=$value->status_pelanggan?></td>
- <td><?php echo $value->no_telepon; ?></td>
- <td>
- <?php
- if ($value->id_driver == 'D0') {
- echo '-';
- } else if (strpos($value->id_driver, 'M') !== false) {
- ?>
- <a href="<?php echo base_url(); ?>index.php/Listdriver/detilMmassage/<?php echo $value->id_driver ?>">
- <?php echo $value->id_driver ?>
- </a>
- <?php
- } else if (strpos($value->id_driver, 'T') !== false) {
- ?>
- <a href="<?php echo base_url(); ?>index.php/Listdriver/detilMservice/<?php echo $value->id_driver ?>">
- <?php echo $value->id_driver ?>
- </a>
- <?php
- } else {
- ?>
- <a href="<?php echo base_url(); ?>index.php/Listdriver/detilDriver/<?php echo $value->id_driver ?>">
- <?php echo $value->id_driver ?>
- </a>
- <?php
- }
- ?>
- </td>
- <td>
- <?= $value->status_transaksi; ?>
- </td>
- <td>
- <?php
- if ($value->pakai_mpay == '0') {
- echo 'cash';
- } else {
- echo 'mpay';
- }
- ?>
- </td>
- <td>
- <div class="sparkbar" data-color="#3a5068"
- data-height="20"><?php echo $value->waktu; ?></div>
- </td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- </div>
- <!-- /.box-body -->
- </div>
- <!-- /.box -->
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </div>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- </div>
- <!-- ./wrapper -->
- <!-- jQuery 2.2.3 -->
- <script src="<?php echo base_url(); ?>plugins/jQuery/jquery-2.2.3.min.js"></script>
- <!-- Bootstrap 3.3.6 -->
- <script src="<?php echo base_url(); ?>bootstrap/js/bootstrap.min.js"></script>
- <!-- DataTables -->
- <script src="<?php echo base_url(); ?>plugins/datatables/jquery.dataTables.min.js"></script>
- <script src="<?php echo base_url(); ?>plugins/datatables/dataTables.bootstrap.min.js"></script>
- <!-- SlimScroll -->
- <script src="<?php echo base_url(); ?>plugins/slimScroll/jquery.slimscroll.min.js"></script>
- <!-- FastClick -->
- <script src="<?php echo base_url(); ?>plugins/fastclick/fastclick.js"></script>
- <!-- AdminLTE App -->
- <script src="<?php echo base_url(); ?>dist/js/app.min.js"></script>
- <!-- AdminLTE for demo purposes -->
- <script src="<?php echo base_url(); ?>dist/js/demo.js"></script>
- <!-- page script -->
- <script>
- $(function () {
- $("#example1").DataTable(
- {
- "aaSorting": [[0, "desc"]]
- }
- );
- $('#example2').DataTable({
- "paging": true,
- "lengthChange": false,
- "searching": false,
- "ordering": false,
- "info": true,
- "autoWidth": false
- });
- });
- </script>
- <script>
- $(document).ready(function() {
- $('#example1').DataTable( {
- dom: 'Bfrtip',
- buttons: [
- 'copy', 'csv', 'excel', 'pdf', 'print'
- ]
- } );
- } );
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement