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

Nota Fiscal - Configurações

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "mra_nota_fiscal/mra_configuracoes".($acao=='edit'?'/1':''), 'method' => ($acao=='edit'?'put':'post'), 'novalidate'=> true, 'enctype' => 'multipart/form-data', 'accept-charset' => 'utf-8', 'id' => ($acao=='edit'?'form_edit':'form_add').'_mra_configuracoes']) !!}
@if($acao=='edit') {!! Form::hidden('id', $MRANfConfiguracoes->id) !!} @endif
{!! Form::label('','CNPJ') !!} *
{!! Form::text('cnpj', ($acao=='edit'?$MRANfConfiguracoes->cnpj:null), ['class' => 'form-control cnpj_v2', "placeholder"=>"__.___.___/____-__", "id" => "input_cnpj", "maxlength"=>50]) !!}
{!! Form::label('','Razão Social') !!} * {!! Form::text('razao_social', ($acao=='edit'?$MRANfConfiguracoes->razao_social:null), ['class' => 'form-control' , "id" => "input_razao_social", "maxlength"=>100]) !!}
{!! Form::label('','Nome Fantasia') !!} * {!! Form::text('nome_fantasia', ($acao=='edit'?$MRANfConfiguracoes->nome_fantasia:null), ['class' => 'form-control' , "id" => "input_nome_fantasia", "maxlength"=>100]) !!}
{!! Form::label('','Apelido da Empresa') !!} {!! Form::text('apelido_empresa', ($acao=='edit'?$MRANfConfiguracoes->apelido_empresa:null), ['class' => 'form-control' , "id" => "input_apelido_empresa", "maxlength"=>100]) !!}
{!! Form::label('','Inscrição Estadual') !!} {!! Form::text('inscricao_estadual', ($acao=='edit'?$MRANfConfiguracoes->inscricao_estadual:null), ['class' => 'form-control' , "id" => "input_inscricao_estadual", "maxlength"=>50]) !!}
{!! Form::label('','Inscrição Municipal') !!} {!! Form::text('inscricao_municipal', ($acao=='edit'?$MRANfConfiguracoes->inscricao_municipal:null), ['class' => 'form-control' , "id" => "input_inscricao_municipal", "maxlength"=>50]) !!}
{!! Form::label('','E-mail') !!} *
{!! Form::text('cont_email', ($acao=='edit'?$MRANfConfiguracoes->cont_email:null), ['class' => 'form-control' , "id" => "input_cont_email", "maxlength"=>200]) !!}
{!! Form::label('','Telefone') !!} *
{!! Form::text('cont_telefone', ($acao=='edit'?$MRANfConfiguracoes->cont_telefone:null), ['class' => 'form-control telefone',"placeholder"=>"(__) ____-____", "id" => "input_cont_telefone", "maxlength"=>200]) !!}
{!! Form::label('','Regime Tributário') !!} * {!! Form::select('regime_tributario', \App\Http\Controllers\MRA\MRANotasFiscais::Get_options_regime_tributario(), ($acao=='edit'?$MRANfConfiguracoes->regime_tributario:null), ['class' => 'form-control select_single_no_trigger', "id" => "input_regime_tributario"]) !!}
{!! Form::label('','Status') !!} * {!! Form::select('status', \App\Http\Controllers\MRA\MRAListas::Get_options_status_ai(), ($acao=='edit'?$MRANfConfiguracoes->status:null), ['class' => 'form-control select_single_no_trigger', "id" => "input_status"]) !!}
{!! Form::label('','CEP') !!} *
{!! Form::text('end_cep', ($acao=='edit'?$MRANfConfiguracoes->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'?$MRANfConfiguracoes->end_rua:null), ['class' => 'form-control' , "id" => "input_end_rua", "maxlength"=>200]) !!}
{!! Form::label('','Número') !!} * {!! Form::text('end_numero', ($acao=='edit'?$MRANfConfiguracoes->end_numero:null), ['class' => 'form-control' , "id" => "input_end_numero", "maxlength"=>200]) !!}
{!! Form::label('','Bairro') !!} * {!! Form::text('end_bairro', ($acao=='edit'?$MRANfConfiguracoes->end_bairro:null), ['class' => 'form-control' , "id" => "input_end_bairro", "maxlength"=>200]) !!}
{!! Form::label('','Complemento') !!} * {!! Form::text('end_complemento', ($acao=='edit'?$MRANfConfiguracoes->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'?$MRANfConfiguracoes->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'?$MRANfConfiguracoes->end_cidade:null), ['class' => 'form-control' , "id" => "input_end_cidade", "maxlength"=>50]) !!}
{{--@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--}}
{!! Form::label('','Token API') !!} *
{!! Form::text('token_api', ($acao=='edit'?$MRANfConfiguracoes->token_api:null), ['class' => 'form-control', "id" => "input_token_api", "maxlength"=>500]) !!}
{!! Form::label('','Token Webhook') !!} *
{!! Form::text('token_webhook', ($acao=='edit'?$MRANfConfiguracoes->token_webhook:null), ['class' => 'form-control', "id" => "input_token_webhook", "maxlength"=>500]) !!}
Link Webhook: {{URL('mra_nota_fiscal/webhook')}}
Voltar @if( App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@store") || App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@update") ) @endif
{!! Form::close() !!} @section('script') @endsection @endsection