diff --git a/application/views/Shop/listShops.php b/application/views/Shop/listShops.php new file mode 100644 index 0000000..6e9f02b --- /dev/null +++ b/application/views/Shop/listShops.php @@ -0,0 +1,136 @@ +<div class="content-wrapper" > + <section class="content-header"> + <h1><?= $pTitle ?><small><?= $pDescription ?></small></h1> + <ol class="breadcrumb"> + <li><a href="<?= base_url() ?>"><i class="fa fa-star-o" aria-hidden="true"></i>Home</a></li> + <li><?= $menu ?></li> + <li class="active"><?= $smenu ?></li> + </ol> + </section> + <section class="content"> + <div class="row"> + <div class="col-xs-12"> + <div class="box box-warning"> + <div class="box-header with-border"> + <div class="col-md-6"><h3 class="box-title">Shop</h3></div> + <div class="col-md-6" align="right"> + <a class="btn btn-sm btn-primary" href="<?= base_url() ?>">Back</a> + </div> + </div> + <div class="box-body"> + <?php + if(!empty($shop_data) && $shop_data['status'] == 'success'){ ?> + <!-- <table id="mechanicUsers" class="table table-bordered table-striped datatable "> + <thead> + <tr> + <th class="hidden">ID</th> + <th width="150px;">Shop Name</th> + <th width="150px;">Phone</th> + <th width="150px;">Email ID</th> + <th width="250px;">Address</th> + <th width="100px;">Status</th> + </tr> + </thead> + <tbody> + <?php + if(!empty($shop_data) && $shop_data['status'] == 'success'){ ?> + <tr> + <th class="hidden"><?= $shop_data['shops']['shop_id'] ?></th> + <th class="center"><?= $shop_data['shops']['shop_name'] ?></th> + <th class="center"><?= $shop_data['shops']['phone'] ?></th> + <th class="center"><?= $shop_data['shops']['email_id'] ?></th> + <th class="center"><?= $shop_data['shops']['address'] ?></th> + <th class="center"><?= ($shop_data['shops']['status'] == 1)?'Active':'De-activate' ?></th> + </tr> + <?php } ?> + </tbody> + </table> --> + <div class="col-md-3"> + <div class="row"> + <div class="col-md-5"><span>Shop Name </span></div> + <div class="col-md-7"> + <span>:-</span> + <label class="padLeft20"> + <?= $shop_data['shops']['shop_name'] ?> + </label> + </div> + </div> + </div> + <div class="col-md-3"> + <div class="row"> + <div class="col-md-5"><span>Phone</span></div> + <div class="col-md-7"> + <span>:-</span> + <label class="padLeft20"> + <?= $shop_data['shops']['phone'] ?> + </label> + </div> + </div> + </div> + <div class="col-md-3"> + <div class="row"> + <div class="col-md-4"><span>Email ID</span></div> + <div class="col-md-8"> + <span>:-</span> + <label class="padLeft20"> + <?= $shop_data['shops']['email_id'] ?> + </label> + </div> + </div> + </div> + <div class="col-md-3"> + <div class="row"> + <div class="col-md-4"><span>Address</span></div> + <div class="col-md-8"> + <span>:-</span> + <label class="padLeft20"> + <?= $shop_data['shops']['address'] ?> + </label> + </div> + </div> + </div> + <?php } ?> + </div> + </div> + </div> + </div> +<?php if(count($shop_data['coworkers']) > 0){ ?> + <div class="row"> + <div class="col-xs-12"> + <div class="box box-warning"> + <div class="box-header with-border"> + <div class="col-md-6"><h3 class="box-title">List Of Co-Workers</h3></div> + </div> + <div class="box-body"> + <table id="mechanicShopUsers" class="table table-bordered table-striped datatable "> + <thead> + <tr> + <th class="hidden">ID</th> + <th width="150px;">Mechanic Name</th> + <th width="150px;">Phone</th> + <th width="150px;">Email ID</th> + <th width="250px;">Address</th> + </tr> + </thead> + <tbody> + <?php + if(!empty($shop_data) && $shop_data['status'] == 'success'){ + foreach ( $shop_data['coworkers'] as $key => $value) { + ?> + <tr> + <th class="hidden"><?= $value['mechanic_id'] ?></th> + <th class="center"><?= $value['first_name'].' '.$value['last_name'] ?></th> + <th class="center"><?= $value['phone'] ?></th> + <th class="center"><?= $value['email_id'] ?></th> + <th class="center"><?= $value['address'] ?></th> + </tr> + <?php } } ?> + </tbody> + </table> + </div> + </div> + </div> + </div> + <?php } ?> + </section> +</div> \ No newline at end of file