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

Financeiro - Fornecedores

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "mra_fluxo_financeiro/mra_f_fornecedores".($acao=='edit'?'/'.$MRAFFornecedores->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_fornecedores']) !!}
@if($acao=='edit') {!! Form::hidden('id', $MRAFFornecedores->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'?$MRAFFornecedores->status:null), ['class' => 'form-control select_single_no_trigger' , "id" => "input_status"]) !!}
{!! Form::label('','Tipo de Pessoa') !!} * {!! Form::select('tipo', \App\Http\Controllers\MRA\MRAListas::Get_options_tipo_pessoa(), ($acao=='edit'?$MRAFFornecedores->tipo:null), ['class' => 'form-control select_single_no_trigger' , "id" => "input_tipo"]) !!}
{!! Form::label('','Nome') !!} * {!! Form::text('nome', ($acao=='edit'?$MRAFFornecedores->nome:null), ['class' => 'form-control' , "id" => "input_nome", "maxlength"=>100]) !!}
{!! Form::label('','Telefone') !!}
{!! Form::text('cont_telefone', ($acao=='edit'?$MRAFFornecedores->cont_telefone:null), ['class' => 'form-control telefone',"placeholder"=>"(__) ____-____", "id" => "input_cont_telefone", "maxlength"=>200]) !!}
{!! Form::label('','E-mail') !!}
{!! Form::text('cont_email', ($acao=='edit'?$MRAFFornecedores->cont_email:null), ['class' => 'form-control' , "id" => "input_cont_email", "maxlength"=>200]) !!}
{!! Form::label('','CEP') !!}
{!! Form::text('end_cep', ($acao=='edit'?$MRAFFornecedores->end_cep:null), ['class' => 'form-control cep_v2', "placeholder"=>"_____-___", "id" => "input_end_cep", "maxlength"=>50]) !!}
{!! Form::label('','Logradouro / Rua') !!} {!! Form::text('end_rua', ($acao=='edit'?$MRAFFornecedores->end_rua:null), ['class' => 'form-control' , "id" => "input_end_rua", "maxlength"=>200]) !!}
{!! Form::label('','Número') !!} {!! Form::text('end_numero', ($acao=='edit'?$MRAFFornecedores->end_numero:null), ['class' => 'form-control' , "id" => "input_end_numero", "maxlength"=>200]) !!}
{!! Form::label('','Bairro') !!} {!! Form::text('end_bairro', ($acao=='edit'?$MRAFFornecedores->end_bairro:null), ['class' => 'form-control' , "id" => "input_end_bairro", "maxlength"=>200]) !!}
{!! Form::label('','Complemento') !!} {!! Form::text('end_complemento', ($acao=='edit'?$MRAFFornecedores->end_complemento:null), ['class' => 'form-control' , "id" => "input_end_complemento", "maxlength"=>200]) !!}
{!! Form::label('','Estado') !!} {!! Form::select('end_estado', \App\Http\Controllers\MRA\MRAListas::Get_options_estados(), ($acao=='edit'?$MRAFFornecedores->end_estado:null), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "id" => "input_end_estado"]) !!}
{!! Form::label('','Cidade') !!} {!! Form::text('end_cidade', ($acao=='edit'?$MRAFFornecedores->end_cidade:null), ['class' => 'form-control' , "id" => "input_end_cidade", "maxlength"=>50]) !!}
{!! Form::label('','País') !!} {!! Form::select('end_pais', \App\Http\Controllers\MRA\MRAListas::Get_options_paises(), (($acao=='edit' and !is_null($MRAFFornecedores->end_pais))?$MRAFFornecedores->end_pais:1058), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "dropdown-menu-right"=>"", "id" => "input_end_pais"]) !!}
{{--@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