<?php

use yii\helpers\Html;
use frontend\components\ReceptionWidget;
use common\components\Image;
use yii\helpers\Url;
use frontend\components\CustomerTabWidget;

/* @var $this yii\web\View */
/* @var $model common\models\Customer */


$customer = $model;
$card = $customer->card;

$this->title = Yii::t('common/customer', 'Update customer:' ) . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => "Recepció", 'url' => ['customer/reception' ,'number' => $card->number]];
$this->params['breadcrumbs'][] = Yii::t('common/customer', 'Update');




?>
<div class="customer-update">

	<?php // echo ReceptionWidget::widget( ['form' => $receptionForm, 'route' => ['customer/reception'] ] )?>

	<?php echo CustomerTabWidget::widget(['card' => $card])?>

	<?php  echo $this->render('_camera',['model' => $model]); ?>

    <div style='margin-top: 12px'>
    <?php if ( $model->image1 ){
   		echo Html::img( Url::base( ) . Image::thumb( $model->image1->path,160,120 )); 	
    }
    	
   	?>
    </div>
    <?= $this->render('_form_update', [
        'model' => $model,
    ]) ?>

</div>

