@extends('layouts.app')
@section('titulo', (!$model->exists ? 'Creando' : 'Editando') . ' Rango de Facturación')
@section('titulo_card', 'Lista de rangos de facturación')
@section('content')
@php
$metodo = !$model->exists ? 'POST' : 'PATCH';
$ruta = !$model->exists ? route('configuracion.facturacion.rangos.store') : route('configuracion.facturacion.rangos.update', [$model->id]);
@endphp
{{ html()->modelForm($model, $metodo, $ruta)->open() }}
{{ html()->select('TipoDocumento', App\Models\FacturaRango::TIPO_DOCUMENTO)->class('form-control') }}
{{ html()->date('FechaLimite')->class('form-control') }}
{{ html()->text('CAI')->class('form-control') }}
{{ html()->number('CantidadSolicitada')->class('form-control') }}
{{ html()->number('CantidadOtorgada')->class('form-control') }}
{{ html()->text('NumeroInicial')->class('form-control') }}
{{ html()->text('NumeroFinal')->class('form-control') }}
{{ html()->number('Correlativo')->class('form-control') }}
{{ html()->number('ISV1')->class('form-control') }}
{{ html()->number('ISV2')->class('form-control') }}
{{ html()->submit(' ' . (!$model->exists ? 'Guardar' : 'Editar'))->class('btn btn-primary') }}
{{ html()->closeModelForm() }}
@endsection