@if (isset($user) && $user)
{{-- @if ($canModifyUser) @else @endif --}}

@t('Orders for %s %s', [$user->first_name, $user->last_name])

@if (isset($user->company) && $user->company) @endif
@t('Phone: ') {{ $user->phone }}
@if (isset($user->birthday) && $user->birthday)
@t('DOB: ') @date($user->birthday)
@endif
@t('Address: ') {{ $user->address }} @if (isset($user->town) && $user->town) , {{ $user->town }} @endif @if (isset($user->county) && $user->county) , {{ $user->county }} @endif
@t('Postcode: ') {{ $user->postcode }}
{!! Form::label('assign', __('Assigned To')) !!} {!! Form::select( 'assign', $users, $relation->assigned_to, [ 'data-url' => action('Payment/ClientsController@secure_assign', [$venue->id, $relation->id]), 'empty' => true, 'class' => 'form-control assign-to' ] ) !!}
@include( 'Elements/Common/modal', [ 'id' => 'order-user-modal', 'title' => t('Modify Customer'), 'form' => [ 'data-toggle' => 'validator', 'action' => action('Payment/UsersController@secure_edit', [$venue->id, $user->id]), ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/order_modal_form', [ 'venue' => $venue, 'data' => ao(['user_id' => $user->id, 'User' => $user]), 'settings' => $settings ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_footer' ) ] ) @include( 'Elements/Common/modal', [ 'id' => 'client-internal-notes', 'title' => t('Internal Notes'), 'form' => [ 'data-toggle' => 'validator', 'action' => action('Payment/ClientsController@secure_notes', [$venue->id, $relation->id]), 'class' => 'ajaxed' ], 'content' => view( 'Plugins/Payment/Views/Elements/Client/notes_form', [ 'data' => $relation ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_footer' ) ] ) @endif