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

Gateway Iugu - Configurações

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "mra_g_iugu/mra_g_iugu_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_g_iugu_configuracoes']) !!}
@if($acao=='edit') {!! Form::hidden('id', $MRAGIuguConfiguracoes->id) !!} @endif
{!! Form::label('','Token API') !!} *
{!! Form::text('token_api', ($acao=='edit'?$MRAGIuguConfiguracoes->token_api:null), ['class' => 'form-control', "id" => "input_token_api", "maxlength"=>500]) !!}
{!! Form::label('','Prefixo Faturas ( Avulsas )') !!} {!! Form::text('prefix_order_id', ($acao=='edit'?$MRAGIuguConfiguracoes->prefix_order_id:null), ['class' => 'form-control', "id" => "input_prefix_order_id", "maxlength"=>500, "placeholder"=>"ex: FAT-00001"]) !!}
{{--
{!! Form::label('','Token Webhook') !!} *
{!! Form::text('token_webhook', ($acao=='edit'?$MRAGIuguConfiguracoes->token_webhook:null), ['class' => 'form-control', "id" => "input_token_webhook", "maxlength"=>500]) !!}
Link Webhook: {{URL('mra_g_iugu/webhook')}}
--}}
{{--@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( App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@store") || App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@update") ) @endif
{!! Form::close() !!} @section('script') @endsection @endsection