<?php 
use yii\helpers\Html;
$status = ['draft' => 'Draft', 'active' => 'Active', 'deleted' => 'Deleted'];
?>
<style>
.activity-feed {
  padding: 15px;
}
.activity-feed .feed-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 30px;
  border-left: 2px solid #e4e8eb;
}
.activity-feed .feed-item:last-child {
  border-color: transparent;
}
.activity-feed .feed-item:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f37167;
}
.activity-feed .feed-item .date {
  position: relative;
  top: -5px;
  color: #8c96a3;
  text-transform: uppercase;
  font-size: 13px;
}
.activity-feed .feed-item .text {
  position: relative;
  top: -3px;
}
</style>
<div class='clientdetails'>
	<div class="card">
		<div class="card-header">Addressing</div>
		<div class="card-body">
			<div class="row">
				<div class="col-sm-2">Name</div>
				<div class="col-sm-4"><?= $model->fullname ?></div>
				<div class="col-sm-2"></div>
				<div class="col-sm-4"></div>
			</div>
			<div class="row">
				<div class="col-sm-2">Address</div>
				<div class="col-sm-4"><?= $model->billingaddress?->fulladdress ?></div>
				<div class="col-sm-2">E-Mail Address</div>
				<div class="col-sm-4"><?= Html::A($model->email, 'mailto:'.$model->email, []) ?></div>
			</div>
			<div class="row">
				<div class="col-sm-2">Phone No</div>
				<div class="col-sm-4"><?= Html::A($model->adv->phoneno, 'tel:'.$model->adv->phoneno, []) ?></div>
			</div>
			<div class="row">
				<div class="col-sm-2">Mobile No</div>
				<div class="col-sm-4"><?= $model->adv->mobileno ?></div>
			</div>
			
		</div>
	</div>
	
	<div class="card">
		<div class="card-header">Boat Details</div>
		<div class="card-body">
			<div class="row">
				<div class="col-sm-2">Boat Name</div>
				<div class="col-sm-4"></div>
				<div class="col-sm-2">Moored At</div>
				<div class="col-sm-4"></div>
			</div>
		</div>
	</div>
	<?php \yii\widgets\Pjax::begin(['id' => 'notes']) ?>
		<div class="card">
			<div class="card-header">Notes</div>
			<div class="card-body">
				<div class="activity-feed">
					<?php foreach ($model->notes as $a => $note) { ?>
						<div class="feed-item">
							<div class="date">
								<?= $note->created_at .' - '. $note->createdby_name ?>
								<?= Html::tag('span', '', ['class' => 'fa fa-pencil-alt notesuModal', 'data-id' => $note->id]); ?>
							</div>
							<div class="text"><?= $note->text ?></div>
						</div>
					<?php } ?> 
				</div>
			</div>						
		</div>
	<?php \yii\widgets\Pjax::end() ?>
</div>	
	