@extends('app') @section('content')
Devolución
@if ($alert = Session::get('alert-success'))
{!! $alert !!}
@endif @if ($alert = Session::get('alert-warning'))
{!! $alert !!}
@endif
{{-- El id 'regForm' es importante para que el JavaScript lo encuentre --}} {!!Form::open(array('url' =>'/Devolucion', 'method'=>'POST','role'=>'form','id'=>'regForm','name'=>'regForm'))!!} {!!Form::token()!!}
{!!Form::label('documento','Número de Documento')!!}
{!!Form::text('documento',null,array('class'=>'form-control','id'=>'documento','required'))!!}
{!!Form::label('producto','Código Producto')!!}
{!!Form::text('producto',null,array('class'=>'form-control','id'=>'producto'))!!}
{!!Form::label('cantidad','Cantidad a Devolver')!!}
{!!Form::text('cantidad',null,array('class'=>'form-control','id'=>'cantidad','pattern'=>'[0-9]+','required'))!!}
{!!Form::submit('Devolver',array('name'=>'Devolver','id'=>'Devolver','class'=>'btn btn-primary'))!!}
{!! Form::close()!!}
{{-- =================================================================== --}} {{-- ================ INICIO: CÓDIGO JAVASCRIPT AÑADIDO =============== --}} {{-- =================================================================== --}} {{-- =================================================================== --}} {{-- ================= FIN: CÓDIGO JAVASCRIPT AÑADIDO ================= --}} {{-- =================================================================== --}} @endsection