@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

User

@endsection @section('main-content')

Entry

{!! Form::open(['url' => '/admin/users', 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('Full Name') !!} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Enter full name']) !!} @if ($errors->has('name')){!! $errors->first('name') !!}@endif
{!! Form::label('Email') !!} {!! Form::text('email', null, ['class' => 'form-control', 'placeholder' => 'Enter email']) !!} @if ($errors->has('email')){!! $errors->first('email') !!}@endif
{!! Form::label('Password') !!} {!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'Enter password']) !!} @if ($errors->has('password')){!! $errors->first('password') !!}@endif
{!! Form::label('Location') !!} {!! Form::select('location_id', $locations, ($locations->location_id = 1) ? $locations->location_id : '', ['class'=> 'form-control']) !!} @if ($errors->has('location_id')){!! $errors->first('location_id') !!}@endif
{!! Form::label('Status') !!} {!! Form::select('user_is_exist', [1 => 'Active', 0 => 'Inactive'], null, ['class' => 'form-control']) !!}
{!! Form::label('User Avatar') !!} {!! Form::file('user_avatar') !!} @if ($errors->has('user_avatar')){!! $errors->first('user_avatar') !!}@endif
{!! Form::label('User Role') !!} {!! Form::select('role_id', $roles, null, ['placeholder' => 'Select user role', 'class'=> 'form-control', 'id' => 'role_id']) !!} @if ($errors->has('role_id')){!! $errors->first('role_id') !!}@endif
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection