<style>
th,td {
  vertical-align: middle !important;
  font-size: 11px !important;
}

th.dt-body-center,
	td.dt-body-center {
  text-align: center !important;
  vertical-align: middle !important;
}

.table-scrollable .dataTable td>.btn-group, .table-scrollable .dataTable th>.btn-group {
  position: absolute;
  margin-top: -10px;
}

.dataTables_empty {
  text-align: center !important;
}

.dropdown-menu {
  min-width: 10px !important;
}

.packing-list>tbody>tr>td,
	.packing-list>thead>tr>th {
  text-align: center !important;
  vertical-align: middle !important;
}

.marking>tbody>tr>td,
	.marking>thead>tr>th {
  font-size: 14px !important;
}

@media print {
	@  page {
    size: A4 landscape;
    max-height: 100%;
    max-width: 100%;
  }

  .marking>tbody>tr>td , .marking>thead>tr>th {
    padding: 15px;
  }

  body.modalprinter * {
    visibility: hidden;
  }

  body.modalprinter .modal-dialog.focused {
    position: absolute;
    padding: 0;
    margin: 0;
    left: 0;
    top: 0;
    page-break-before: avoid;
    width: 100%;
    height: 100%;
  }

  body.modalprinter .modal-dialog.focused .modal-content {
    border-width: 0;
  }

  body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title,
	body.modalprinter .modal-dialog.focused .modal-content .modal-body,
	body.modalprinter .modal-dialog.focused .modal-content .modal-body * {
    visibility: visible;
  }

  body.modalprinter .modal-dialog.focused .modal-content .modal-header,
	body.modalprinter .modal-dialog.focused .modal-content .modal-body {
    padding: 0;
  }

  body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title {
    margin-bottom: 20px;
  }
}
</style>
<div class="row">
	<div class="col-md-12">
		<div class="portlet box blue-hoki">
			<div class="portlet-title">
				<div class="caption">
					<i class="fa fa-cogs"></i><strong>Shipping Order Status</strong> 
				</div>
				<?php if($_SESSION['group_id'] == 2){ ?>
				<div class="actions">
					<a class="btn white btn-outline btn-circle" href="/shipping-order/create"> Add New <i class="fa fa-plus"></i></a>					
				</div>
				<?php }?>
			</div>
			<div class="portlet-body">
				<table class="table table-striped table-bordered table-hover" id="shipping-order">
					<thead>
						<tr role="row" class="heading">
							<th>No</th>
							<th>Order No</th>
							<th>Marking</th>
							<th>Date</th>
							<th>Supplier</th>
							<th>Warehouse <br/> Name</th>
							<th>PO Status</th>
							<th>Total CBM</th>
							<th>Total Weight</th>
							<th>Total Carton</th>
							<th style="padding-right: 30px;">Actions</th>
						</tr>
					</thead>
					<?php if($_SESSION['group_id'] == 2){ ?>
					<tfoot>
						<tr>
							<td colspan="11">
								<center>
									<a class="btn green" href="/shipping-order/create">
									<i class="fa fa-plus"></i>
									</a>
								</center>
							</td>
						</tr>
					</tfoot>
					<?php } ?>
				</table>
			</div>
		</div>
	</div>
</div>
<div class="modal fade bs-modal-lg in printable1" id="previewPL" tabindex="-1" role="basic" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content form">
			<form id="marking-no-add"  class="form-horizontal form-bordered">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
					<h3 class="modal-title">Packing List</h3>
					<div class="btn-group pull-right">
						<button class="btn green btn-circle btn-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false"> Actions
						<i class="fa fa-angle-down"></i>
						</button>
						<ul class="dropdown-menu pull-left" role="menu">
							<li>
								<a onclick="window.print();"><i class="icon-printer"></i> Print</a>
							</li>
							<li>
								<a id="pdf"><i class="icon-doc"></i>PDF</a>
							</li>
							<li>
								<a id="excel"><i class="icon-doc"></i>Excel</a>
							</li>
						</ul>
					</div>
				</div>
				<div class="modal-body">
					<div>
						<div class="form-body" id="getCode">
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="modal fade bs-modal-lg in printable2" id="previewMarking" tabindex="-1" role="basic" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content form">
			<form id="marking-no-add"  class="form-horizontal form-bordered">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
					<h3 class="modal-title">Marking</h3>
					<div class="btn-group pull-right">
						<button class="btn green btn-circle btn-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false"> Actions
						<i class="fa fa-angle-down"></i>
						</button>
						<ul class="dropdown-menu pull-left" role="menu">
							<li>
								<a onclick="window.print();"><i class="icon-printer"></i> Print</a>
							</li>
							<li>
								<a id="pdf2"><i class="icon-doc"></i>PDF</a>
							</li>
						</ul>
					</div>
				</div>
				<div class="modal-body" id="getCode2">
				</div>
			</form>
		</div>
	</div>
</div>