<style>
	th, td { text-align: center; vertical-align: middle;}
	.table>thead>tr>th { text-align: center !important; vertical-align: middle !important;}
</style>
<div class="row">
	<div class="col-md-12">
		<div class="portlet box blue-hoki portlet-fit full-height-content full-height-content-scrollable">
			<div class="portlet-title">
				<div class="caption">
					<i class="fa fa-cogs"></i><strong>Delivery Arrangement : <?php echo getSOData($id, "marking_no"); ?></strong> 
				</div>
			</div>
			<div class="portlet-body">
				<div class="form-horizontal">
					<div class="form-body">
						<h3 class="form-section">Shipment Arrangement Details</h3>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Delivery Type :</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php if(getDAData($so_id, "delivery_type") == 1){ echo "Inhouse Services"; }elseif(getDAData($so_id, "delivery_type") == 2){ echo "Courier Services"; }elseif(getDAData($so_id, "delivery_type") == 3){ echo "Outsource Services"; }elseif(getDAData($so_id, "delivery_type") == 4){ echo "Self Collect"; } ?> </p>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<?php if(getDAData($so_id, "delivery_type") == 1 || getDAData($so_id, "delivery_type") == 3 ){ ?>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Delivery Date :</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "delivery_date"); ?> </p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-4">Driver Name:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "driver_contact_person"); ?> </p>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Driver Contact:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "driver_contact_person_no"); ?> </p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-4">Vehicle No:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "vehicle_no"); ?> </p>
									</div>
								</div>
							</div>
							<?php }elseif(getDAData($so_id, "delivery_type") == 2){ ?>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Courier Service:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "courier_service_name"); ?> </p>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Tracking No:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "tracking_no"); ?> </p>
									</div>
								</div>
							</div>
							<?php }elseif(getDAData($so_id, "delivery_type") == 4){ ?>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Warehouse:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo get_warehouse(getDAData($so_id, "warehouse_id"), "warehouse_name"); ?> </p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-4">Contact Person:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_contact_person"); ?> </p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-4">Contact Person No:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_contact_person_no"); ?> </p>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">Address:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_address"); ?> </p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-4">City:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_zip"); ?>  <?php echo getDAData($so_id, "warehouse_city"); ?> </p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-4">State:</label>
									<div class="col-md-8">
										<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_state"); ?> </p>
									</div>
								</div>
							</div>
							<?php } ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>