@php $acao = ((isset($MRAGIuguPlanos) and !is_null($MRAGIuguPlanos))?'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 - Planos

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "mra_g_iugu/mra_g_iugu_planos".($acao=='edit'?'/'.$MRAGIuguPlanos->id:''), '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_planos']) !!}
@if($acao=='edit') {!! Form::hidden('id', $MRAGIuguPlanos->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'?$MRAGIuguPlanos->status:null), ['class' => 'form-control select_single_no_trigger' , "id" => "input_status"]) !!}
--}} @if($acao=='edit')
{!! Form::label('','ID Iugu Plano',['class'=>'text-warning']) !!} {!! Form::text('iugu_plan_id', ($acao=='edit'?$MRAGIuguPlanos->iugu_plan_id:null), ['class' => 'form-control', "id" => "input_iugu_plan_id", "disabled"=>true]) !!}
@endif
{!! Form::label('','Nome') !!} * {!! Form::text('nome', ($acao=='edit'?$MRAGIuguPlanos->nome:null), ['class' => 'form-control' , "id" => "input_nome", "maxlength"=>100]) !!}
{!! Form::label('','Identificador Plano Iugu') !!} * {!! Form::text('iugu_plan_identifier', ($acao=='edit'?$MRAGIuguPlanos->iugu_plan_identifier:null), ['class' => 'form-control', "id" => "input_iugu_plan_identifier", "disabled"=>($acao=='edit'?true:false)]) !!}
{!! Form::label('','Valor') !!} *
R$
{!! Form::text('valor', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRAGIuguPlanos->valor):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_valor"]) !!}
{!! Form::label('','Intervalo') !!} * {!! Form::number('intervalo', ($acao=='edit'?$MRAGIuguPlanos->intervalo:null), ['class' => 'form-control' , "id" => "input_intervalo", "min"=>1, "max"=>12]) !!}
{!! Form::label('','Tipo de Intervalo') !!} * {!! Form::select('intervalo_tipo', \App\Http\Controllers\MRA\MRAGIugu::Get_options_tipo_intervalo([""]), ($acao=='edit'?$MRAGIuguPlanos->intervalo_tipo:null), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "id" => "input_intervalo_tipo"]) !!}
{!! Form::label('','Dias de Faturamento') !!} * {!! Form::number('dias_ger_faturamento', ($acao=='edit'?$MRAGIuguPlanos->dias_ger_faturamento:null), ['class' => 'form-control' , "id" => "input_dias_ger_faturamento", "min"=>1, "max"=>30]) !!}

Dias antes de vencer gera uma nova fatura.

{!! Form::label('','Formas de Pagamento') !!} *
{{--@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 @if($acao == 'edit' and App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@destroy")) @endif
@if($acao == 'edit')

** Atenção!
- Forçar Exclusão apenas será removido dentro do sistema!

@endif
{!! Form::close() !!} @section('script') @endsection @endsection