<?php $__env->startSection('title'); ?> <?php echo trans('website.labels.billing-information'); ?> - <?php echo trans('website.labels.my-profile'); ?> - <?php echo Config::get('website.title'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('container'); ?> <div class="row"> <div class="col-xs-3"> <?php echo $__env->make('website.user.menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> </div> <div class="col-xs-9"> <div class="row"> <div class="col-xs-12 account"> <?php if(Session::has('success')): ?> <?php echo Alert::success(Session::get('success'))->close(); ?> <?php endif; ?> <?php echo Form::horizontal(['route' => 'user-billing-information', 'secure' => true]); ?> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title text-uppercase"><?php echo trans('website.labels.billing-information'); ?></h3> </div> <div class="panel-body padding"> <div class="row form-group <?php echo $errors->billing->has('first_name') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_first_name', trans('website.fields.first-name').":"); ?> <i class="required">*</i> </div> <div class="col-xs-5"> <?php echo Form::text('billing_first_name', $billing_address ? $billing_address->first_name : null); ?> </div> <?php echo $errors->billing->first('first_name', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('last_name') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_last_name', trans('website.fields.last-name').":"); ?> <i class="required">*</i> </div> <div class="col-xs-5"> <?php echo Form::text('billing_last_name', $billing_address ? $billing_address->last_name : null); ?> </div> <?php echo $errors->billing->first('last_name', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('street') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_street', trans('website.fields.street').":"); ?> <i class="required">*</i> </div> <div class="col-xs-5"> <?php echo Form::text('billing_street', $billing_address ? $billing_address->street : null); ?> </div> <?php echo $errors->billing->first('street', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('postcode') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_postcode', trans('website.fields.postcode').":"); ?> <i class="required">*</i> </div> <div class="col-xs-5"> <?php echo Form::text('billing_postcode', $billing_address ? $billing_address->postcode : null); ?> </div> <?php echo $errors->billing->first('postcode', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('city') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_city', trans('website.fields.city').":"); ?> <i class="required">*</i> </div> <div class="col-xs-5"> <?php echo Form::text('billing_city', $billing_address ? $billing_address->city : null); ?> </div> <?php echo $errors->billing->first('city', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('country') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_country', trans('website.fields.country').":"); ?> <i class="required">*</i> </div> <div class="col-xs-5"> <?php echo Form::select('billing_country', $country_options, $billing_address ? $billing_address->country : null); ?> </div> <?php echo $errors->billing->first('country', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group"> <div class="col-xs-3 equal"> <h4><?php echo trans('website.labels.corporate-information'); ?></h4> </div> <div class="col-xs-9 equal"> <?php if(!$billing_address || (!$billing_address->company && !$billing_address->ico && !$billing_address->dic && !$billing_address->icdph)): ?> <?php echo Form::checkbox('corporate_information_hide', 1, true); ?> <?php else: ?> <?php echo Form::checkbox('corporate_information_hide', 1, false); ?> <?php endif; ?> <?php echo trans('website.fields.i-am-personal-entity'); ?> </div> </div> <div class="corporate-information"> <div class="row form-group <?php echo $errors->billing->has('company') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_company', trans('website.fields.company-name').":"); ?> </div> <div class="col-xs-5"> <?php echo Form::text('billing_company', $billing_address ? $billing_address->company : null); ?> </div> <?php echo $errors->billing->first('company', '<div class="col-xs-4"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('ico') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_ico', trans('website.fields.ico').":"); ?> </div> <div class="col-xs-4"> <?php echo Form::text('billing_ico', $billing_address ? $billing_address->ico : null); ?> </div> <?php echo $errors->billing->first('ico', '<div class="col-xs-5"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('dic') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_dic', trans('website.fields.dic').":"); ?> </div> <div class="col-xs-4"> <?php echo Form::text('billing_dic', $billing_address ? $billing_address->dic : null); ?> </div> <?php echo $errors->billing->first('dic', '<div class="col-xs-5"><span class="help-block">:message</span></div>'); ?> </div> <div class="row form-group <?php echo $errors->billing->has('icdph') ? 'has-error' : ''; ?>"> <div class="col-xs-3"> <?php echo Form::label('billing_icdph', trans('website.fields.icdph').":"); ?> </div> <div class="col-xs-4"> <?php echo Form::text('billing_icdph', $billing_address ? $billing_address->icdph : null); ?> </div> <?php echo $errors->billing->first('icdph', '<div class="col-xs-5"><span class="help-block">:message</span></div>'); ?> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <?php echo Button::accept(trans('website.buttons.save-billing-information'))->submit(); ?> </div> </div> <?php echo Form::close(); ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> @parent $('form input[name=corporate_information_hide]').on('change', function(event) { var checked = $(this).is(':checked'); if (checked) $('form .corporate-information').slideUp(); else $('form .corporate-information').slideDown(); }); <?php if(!$billing_address || (!$billing_address->company && !$billing_address->ico && !$billing_address->dic && !$billing_address->icdph)): ?> $('form input[name=corporate_information_hide]').trigger('change'); <?php endif; ?> <?php $__env->stopSection(); ?>