@include('admin.layouts.errors')
{{ Form::submit('Salvare', array('class' => 'btn btn-lg btn-success action btn-block')) }}
{{ csrf_field() }}
{{ Form::label('userrole_id', $controller::getLabel('userrole_id')) }} {{ Form::select('userrole_id', Userrole::orderBy('id')->pluck('name', 'id')->all(), isset($item->userrole_id) ? $item->userrole_id : null , ['class' => 'form-control']) }}
{{ Form::label('email', $controller::getLabel('email'), ['class' => 'required']) }} {{ Form::text('email', isset($item->email) ? $item->email : null, array('class' => 'form-control')) }}
{{ Form::label('password', $controller::getLabel('password'), ['class' => 'required']) }} {{ Form::text('password', isset($item->password) ? $item->password : null, array('class' => 'form-control')) }}
{{ Form::label('cod_user', 'Cod User', ['class' => 'required']) }} {{ Form::text('cod_user', isset($item->cod_user) ? $item->cod_user : null, array('class' => 'form-control')) }}
@if (Auth::user()->userrole->slug == 'superadmin')
{{ Form::label('nume', $controller::getLabel('nume')) }} {{ Form::text('nume', isset($item->nume) ? $item->nume : null, array('disabled' => 'disabled','class' => 'form-control')) }}
{{ Form::label('cnp', $controller::getLabel('cnp')) }} {{ Form::text('cnp', isset($item->cnp) ? $item->cnp : null, array('disabled' => 'disabled','class' => 'form-control')) }}
{{ Form::label('sold', $controller::getLabel('sold')) }} {{ Form::text('sold', isset($item->sold) ? $item->sold : null, array('disabled' => 'disabled','class' => 'form-control')) }}
{{ Form::label('telefon', $controller::getLabel('telefon')) }} {{ Form::text('telefon', isset($item->telefon) ? $item->telefon : null, array('class' => 'form-control')) }}
{{--
--}} {{--{{ Form::label('website', 'website:') }}--}} {{--{{ Form::text('website', isset($item->website) ? $item->website : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--{{ Form::label('facebook', 'facebook:') }}--}} {{--{{ Form::text('facebook', isset($item->facebook) ? $item->facebook : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--{{ Form::label('website', 'website:') }}--}} {{--{{ Form::text('website', isset($item->website) ? $item->website : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--{{ Form::label('twitter', 'twitter:') }}--}} {{--{{ Form::text('twitter', isset($item->twitter) ? $item->twitter : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--{{ Form::label('googleplus', 'googleplus:') }}--}} {{--{{ Form::text('googleplus', isset($item->googleplus) ? $item->googleplus : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--{{ Form::label('youtube', 'youtube:') }}--}} {{--{{ Form::text('youtube', isset($item->youtube) ? $item->youtube : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::label('short_description', 'Short Description:') }}--}} {{--{{ Form::textarea('short_description', isset($item->short_description) ? $item->short_description : null, ['class' => 'form-control', 'rows'=>5]) }}--}} {{--
--}} {{--
--}} {{--{{ Form::label('description', 'Description:') }}--}} {{--{{ Form::textarea('description', isset($item->description) ? $item->description: null, ['class' => 'form-control', 'rows'=>25]) }}--}} {{--
--}} @endif
{{ Form::label('confirmed', $controller::getLabel('confirmed')) }} {{ Form::select('confirmed', ['1'=>'Yes','0'=>'No'], isset($item->confirmed) ? $item->confirmed : null, ['class' => 'form-control']) }}
{{ Form::label('published', $controller::getLabel('published')) }} {{ Form::select('published', ['1'=>'Published','0'=>'NotPublished'], isset($item->published) ? $item->published:null , ['class' => 'form-control']) }}
{{ Form::label('factura_electronica', $controller::getLabel('factura_electronica')) }} {{ Form::select('factura_electronica', ['1'=>'Da','0'=>'Nu'], isset($item->factura_electronica) ? $item->factura_electronica:null , ['class' => 'form-control']) }}
@if (Auth::user()->userrole->slug == 'superadmin') {{ Form::hidden('user_id', isset($item->user_id) ? $item->user_id : null , array('class' => 'form-control')) }}
{{ Form::label('confirmationcode', 'confirmationcode:') }} {{ Form::text('confirmationcode', isset($item->confirmationcode) ? $item->confirmationcode : null, array('class' => 'form-control')) }}
{{ Form::label('remember_token', 'remember_token:') }} {{ Form::text('remember_token', isset($item->remember_token) ? $item->remember_token : null, array('class' => 'form-control')) }}
@endif
{{ Form::submit('Salvare', array('class' => 'btn btn-lg btn-success action btn-block')) }}
@section('scripts.header') @stop @section('scripts.footer') @stop