@extends('dashboard::master') {{-- Autor: Giovanni López O. @gmlo_89 --}} @section('head') @stop @section('content')

{{ $title }}

{{ Alert::render() }}
@if(!isset($myProfile))
{{ trans('dashboard::label.go_back') }}
@endif
@if($customer->exists) {{ Form::model($customer_array, $formOptions) }} @else {{ Form::model($customer, $formOptions) }} @endif
{{ trans('customers::label.customer_info') }}
{{ Form::text('name', null, array( "class" => "form-control required", "id" => "inputName", "placeholder" => trans('users::label.name') )) }}
{{ Form::text('description', null, array( "class" => "form-control", "id" => "inputDescription", "placeholder" => trans('customers::label.description') )) }}
{{ Form::email('email', null, array( "class" => "form-control required email", "id" => "inputEmail", "placeholder" => trans('users::label.email') )) }}
{{ trans('customers::label.customer_contact') }}
{{ Form::text('contact_name', null, array( "class" => "form-control required", "id" => "inputName", "placeholder" => trans('users::label.name') )) }}
{{ Form::text('contact_address', null, array( "class" => "form-control", "id" => "inputAddress", "placeholder" => trans('customers::label.address') )) }}
{{ Form::text('contact_phone', null, array( "class" => "form-control required digits", "id" => "inputPhone", "placeholder" => trans('customers::label.phone') )) }}
{{ trans('users::label.avatar') }}
@if($customer->exists && !empty($customer->avatar))
@endif
{{ trans('users::label.access_info') }}
@if(!$customer->exists)
{{ Form::text('username', null, array( "class" => "form-control required", "id" => "inputUsername", "placeholder" => trans('users::label.username') )) }}
{{ Form::password('password', array( "class" => "form-control required", "id" => "password" )) }}
{{ Form::password('password_confirmation', array( "class" => "form-control required", "id" => "password_confirmation" )) }}
@else
{{ Form::text('username', null, array( "class" => "form-control required", "id" => "inputUsername", "placeholder" => trans('users::label.username'), "readonly" => "readonly", "disabled" => "disabled" )) }}
@endif
{{ Form::select('active', array('1' => trans('users::label.active'), '0' => trans('users::label.inactive')), null, array( "class" => "form-control ", "id" => "inputStatus", "placeholder" => trans('users::label.status') )) }}
@stop @section('scripts') {{ JavaScript::makeVar('msg_confirm_delete', trans('usergroups::message.confirm_delete_usergroup')) }} @stop