@extends('layouts.app') @section('content')
{{isset($edit) ? 'Actualizar' : 'Crear'}} Caja
@if(isset($edit)) {!! Form::model($edit,['url' => ['pagos/oficina/caja/ingresos/'.$edit->caja_id.'/update'],'method'=>'PATCH','id'=>'frmDatos']) !!} @else {!! Form::open(['url' => 'pagos/oficina/caja/ingresos/store','method'=>'POST','role'=>'form','id'=>'frmDatos']) !!} @endif
{!! Form::mselect('sede',$sedes,isset($edit) ? $edit->caja_entidad_id : null,'Sede',$errors,6,true) !!} {!! Form::mtext('nombre',isset($edit) ? $edit->caja_nombre : null,'Nombre',$errors,6,true,true,[['onkeyup'=>'javascript:this.value=this.value.toUpperCase()']]) !!}
{!! Form::mMonedaFormato('valor_autorizado',isset($edit) ? '₡ '.number_format($edit->caja_valor_autorizado,2,',','.') : null ,'Valor Autorizado',$errors,6,true) !!} {!! Form::mMonedaFormato('maximo_valor',isset($edit) ? '₡ '.number_format($edit->caja_valor_maximo,2,',','.') : null,'Maximo valor permitido por operación',$errors,6,false) !!}
{!! Form::mNumber('procentaje',isset($edit) ? number_format($edit->caja_porcentaje_reintegro,0) : null,'Porcentaje de Reintegro',$errors,6,false,true,null,'%') !!} {!! Form::mselect('estado',$estados,isset($edit) ? ($edit->caja_estado == 0 ? 2 : 1) : 1,'Estado',$errors,6,false) !!}
{!! Form::close() !!}
@endsection @section('script') @endsection