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

Financeiro - Bancos

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "mra_fluxo_financeiro/mra_f_bancos".($acao=='edit'?'/'.$MRAFBancos->id:''), 'method' => ($acao=='edit'?'put':'post'), 'novalidate'=> true, 'enctype' => 'multipart/form-data', 'accept-charset' => 'utf-8', 'id' => ($acao=='edit'?'form_edit':'form_add').'_mra_f_bancos']) !!}
@if($acao=='edit') {!! Form::hidden('id', $MRAFBancos->id) !!} @if(\App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@destroy"))
@endif @endif
{!! Form::label('','Status') !!} {!! Form::select('status', \App\Http\Controllers\MRA\MRAListas::Get_options_status_ai([""]), ($acao=='edit'?$MRAFBancos->status:null), ['class' => 'form-control select_single_no_trigger' , "id" => "input_status"]) !!}
{!! Form::label('','Nome') !!} * {!! Form::text('nome', ($acao=='edit'?$MRAFBancos->nome:null), ['class' => 'form-control' , "id" => "input_nome", "maxlength"=>100]) !!}
{{--@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