@extends('templates.layouts.base') @section('js') @stop @section('content')

@if (Session::has('error_msg'))
@if (is_object(Session::get("error_msg")))
    @foreach (Session::get("error_msg")->all() as $message)
  • {{ $message }}
  • @endforeach
@else

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

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

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

@endif
{{Form::open(array('url'=>Fnx::baseUrlLang($lang->id).'/shop/save-customer'))}}
{{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-prolona'))}}
{{Form::close()}}
{{Form::open(array('url'=>Fnx::baseUrlLang($lang->id).'/shop/change-password'))}}
{{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-prolona'))}}
{{Form::close()}}
@forelse (\Girotecnics\FenixShop\Models\CustomersAdresses::where('customer_id', $customer->id)->get() as $address)