@extends('franchise.layouts.master') @section('title', 'Edit Profile') @section('links') @endsection @section('content')

{!! trans('messages.edit') !!} {!! trans('Profile') !!}

{!! Form::model($user,['method' => 'PATCH','route' => ['franchiseprofile.update',$user->id] ,'class' => 'user-form ']) !!}
{!! Form::label('first_name',trans('messages.first_name'),['class' => 'control-label'])!!} {!! Form::input('text','first_name',isset($user->first_name) ? $user->first_name : '',['class'=>'form-control','placeholder'=>trans('messages.first_name')])!!}
{!! Form::label('last_name',trans('messages.last_name'),['class' => 'control-label'])!!} {!! Form::input('text','last_name',isset($user->last_name) ? $user->last_name : '',['class'=>'form-control','placeholder'=>trans('messages.last_name')])!!}
{!! Form::label('username',trans('messages.username'),['class' => 'control-label'])!!} {!! Form::input('text','username',isset($user->username) ? $user->username : '',['readonly'=>'readonly','class'=>'form-control','placeholder'=>trans('messages.username')])!!}
{!! Form::label('email',trans('messages.email'),['class' => 'control-label'])!!} {!! Form::input('text','email',isset($user->email) ? $user->email : '',['readonly'=>'readonly','class'=>'form-control','placeholder'=>trans('messages.email')])!!}
{!! Form::label('phone',trans('messages.mobile'),['class' => 'control-label'])!!} {!! Form::input('text','mobile',isset($user->phone) ? $user->phone : '',['class'=>'form-control','placeholder'=>trans('messages.mobile')])!!}
{!! Form::label('gender',trans('messages.gender'),['class' => 'control-label'])!!} {!! Form::select('gender', $gender,($profile->gender) ? : '',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::label('Address',trans('Address'),['class' => 'control-label'])!!} {!! Form::textarea('address', ($profile->address) ? : '', ['class'=>'form-control','id' => 'address', 'rows' => 3, 'cols' => 54, 'style' => 'resize:none']) !!}
{!! Form::label('Country',trans('Country'),['class' => 'control-label'])!!} {!! Form::select('country_id', [null => 'Select Country'] + $country,($profile->country) ? : '',['class'=>'form-control input-xlarge select2me'])!!}
{!! Form::label('State',trans('State'),['class' => 'control-label'])!!} {!! Form::select('state_id', [null => 'Select State'] +$state,($profile->state) ? : '',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::label('City',trans('City'),['class' => 'control-label'])!!} {!! Form::select('city_id', [null => 'Select City'] +$city,($profile->city) ? : '',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.update'),['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endsection @section('scripts') @endsection