@extends('templates.layouts.base') {{--TODO: Reemplazar llamadas de cargar modal por ajaxmodal --}} @section('js') @stop @section('css') @stop @section('content')

@if (Session::has('error_msg'))

{{Session::get("error_msg")}}

@endif @if (Session::has('msg'))

{{Session::get("msg")}}

@endif
{{Form::open(array('url'=>Fnx::baseUrlLang($lang->id).'/shop/savecustomer'))}}
{{Form::label('email',Fnx::translate('shop::public.email'))}} {{form::text('email',$customer->email,array('class'=>'form-control','disabled'))}}
{{Form::label('name',Fnx::translate('shop::public.name'))}} {{form::text('name',$customer->name,array('class'=>'form-control','required'))}}
{{Form::label('surname',Fnx::translate('shop::public.surname'))}} {{form::text('surname',$customer->surname,array('class'=>'form-control','required'))}}
{{Form::label('gender',Fnx::translate('shop::public.gender'))}} {{form::select('gender',FnxShop::genders(),$customer->gender,array('class'=>'form-control'))}}
{{Form::label('birthdate',Fnx::translate('shop::public.birthdate'))}}
{{Form::label('phone',Fnx::translate('shop::public.phone'))}} {{form::text('phone',$customer->phone,array('class'=>'form-control','required'))}}
{{Form::label('company',Fnx::translate('shop::public.company'))}} {{form::text('company',$customer->company,array('class'=>'form-control'))}}
{{Form::submit(Fnx::translate('shop::public.savecustomer'),array('class'=>'btn btn-primary'))}}
{{Form::close()}}
{{Form::open(array('url'=>Fnx::baseUrlLang($lang->id).'/shop/changepassword'))}} {{Fnx::translate('shop::public.changepassword')}}
{{Form::label('oldpassword',Fnx::translate('shop::public.oldpassword'),'required')}} {{Form::password('oldpassword',array('class'=>'form-control'))}}
{{Form::label('password',Fnx::translate('shop::public.newpassword'),'required')}} {{Form::password('password',array('class'=>'form-control'))}}
{{Form::label('password_confirmation',Fnx::translate('shop::public.passwordconfirmation'),'required')}} {{Form::password('password_confirmation',array('class'=>'form-control'))}}
{{Form::submit(Fnx::translate('shop::public.change'),array('class'=>'btn btn-primary'))}} {{Form::close()}}
@foreach (\Girotecnics\FenixShop\Models\CustomersAdresses::where('customer_id', $customer->id)->get() as $address)