@extends('panel.layouts.app') @section('page-title') {{ LaraCore::setting('html_prefix') }} {{ (LaraCore::setting('html_prefix') != '') ? '|' : '' }} {{ (@$listall) ? 'Edit Listall' : 'Add Listall' }} @stop @section('content')

{{ (@$listall) ? 'Edit Listall' : 'Add Listall' }}

{{ Form::open( [ 'method'=> 'POST', 'url' => route('listall.store'), 'id'=> 'listall_save', 'enctype' => 'multipart/form-data']) }} {{Form::hidden('id',@$listall->id) }}
{{ Form::select( "designation", [''=>'Select','1'=>'Manager','2'=>'Admin'], ((@$listall->id) ? @$listall->designation : ''), [ 'class' => 'form-control', ] ) }} @if($errors->has('designation')) {{$errors->first('designation') }} @endif
{{ Form::select( 'department[]', [''=>'Select','1'=>'Manager','2'=>'Admin'], ((@$listall->id) ? @$listall->department : @$default_department_key), [ "class" => "form-control select2", "multiple" => "multiple", "style" => "width: 100%;", ] ) }} @if($errors->has('department')) {{$errors->first('department') }} @endif
{{ Form::select( 'city', @$list_city, ((@$listall->id) ? @$listall->city : @$default_city_key), [ "class" => "form-control", ] ) }} @if($errors->has('city')) {{$errors->first('city') }} @endif
{{ Form::select( 'state[]', @$list_city, ((@$listall->id) ? @$listall->state :@$default_city_key), [ "class" => "form-control select2", "multiple" => "multiple", "style"=>"width: 100%;", ] ) }} @if($errors->has('state')) {{$errors->first('state') }} @endif
{{ Form::select( 'code', @$code_options, ((@$listall->id) ? @$listall->code : ""), [ "class" => "form-control", ] ) }}
{{ Form::close() }}
@stop @section('custom-scripts') @stop