@php $acao = ((isset($EventsStatus) and !is_null($EventsStatus))?'edit':'add'); $isPublic = 0; $controller = get_class(\Request::route()->getController()); @endphp @extends($isPublic ? 'layouts.app-public' : 'layouts.app') @section('content') @section('style') @endsection

Calendário - Status

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "events_status".($acao=='edit'?'/'.$EventsStatus->id:''), 'method' => ($acao=='edit'?'put':'post'), 'novalidate'=> true, 'enctype' => 'multipart/form-data', 'accept-charset' => 'utf-8', 'id' => ($acao=='edit'?'form_edit':'form_add').'_events_status']) !!}
@if($acao=='edit') {!! Form::hidden('id', $EventsStatus->id) !!} @if(\App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@destroy"))
@endif @endif
{!! Form::label('','Status') !!} * {!! Form::text('title', ($acao=='edit'?$EventsStatus->title:null), ['class' => 'form-control' , "id" => "input_title", "maxlength"=>100]) !!}
{!! Form::label('','Destaque') !!} {!! Form::color('color', (($acao=='edit'&&!empty($EventsStatus->color))?$EventsStatus->color:'#3a87ad'), ['class' => 'form-control' , "id" => "input_color", "maxlength"=>10]) !!}
{{--@if(0) @if(App\Models\Permissions::permissaoModerador(\Auth::user()))
@php $parserList = array(); $userlist = App\Models\User::get()->toArray(); array_unshift($userlist, array('id' => '', 'name' => '')); array_unshift($userlist, array('id' => 0, 'name' => 'Disponível para todos')); foreach($userlist as $u) { $parserList[$u['id']] = $u['name']; } @endphp {!! Form::select('r_auth', $parserList, null, ['class' => 'form-control']) !!}
@endif @endif--}}
Voltar @if($acao == 'add' and App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@store")) @endif @if($acao == 'edit' and App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@update")) @endif
{!! Form::close() !!} @section('script') @endsection @endsection