<div class="form-group{{ $errors->has('credit') ? ' has-error' : '' }}">
	{!! Form::label('type', trans('general.credit')) !!}
	{!! Form::text('credit', null, ['class' => 'form-control']) !!}
	@if ($errors->has('credit'))
		<span class="help-block">
			<strong>{{ $errors->first('credit') }}</strong>
		</span>
	@endif
</div>


<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
	{!! Form::label('name', trans('general.nombre')) !!}
	{!! Form::text('name', null, ['class' => 'form-control']) !!}
	@if ($errors->has('name'))
		<span class="help-block">
			<strong>{{ $errors->first('name') }}</strong>
		</span>
	@endif
</div>


<div class="form-group">
        	{!! Form::radio('shift', '1', true) !!}
        	{!! Form::label('shift', 'Mañana', ['class' => 'margin']) !!}
        	{!! Form::radio('shift', '2') !!}
        	{!! Form::label('shift', 'Tarde', ['class' => 'margin']) !!}
</div>

<div class="form-group{{ $errors->has('schedule') || $errors->has('schedule') ? ' has-error' : '' }}">
        	{!! Form::label('schedule',  trans('general.schedule')) !!}<br />
        	{!! Form::select('schedule_id', $schedule, null, ['class' => 'form-control']) !!}
    
	@if ($errors->has('schedule'))
		<span class="help-block">
			<strong>{{ $errors->first('schedule') }}</strong>
		</span>
	@endif
</div>

<div class="pull-right">
	{!! Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']) !!}
	<a href="{{ asset('/credits') }}" type="button" class="btn btn-default btn-flat">{{trans('general.cancel')}}</a>
</div>