@extends('app') @section('content')
Registrar Tamaño
@if (count($errors) > 0)
Whoops! Hay algunos problemas!!!.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!!Form::open(array('url' =>'/nuevoTamano', 'method'=>'POST','role'=>'form'))!!} {!!Form::token()!!}
{!!Form::label('NombreT','Descripcion Tamaño')!!}
{!!Form::text('NombreT',@old('NombreT'),array('class'=>'form-control','required'))!!}
{{-- NUEVOS CAMPOS --}}
{!! Form::label('cantidad', 'Cantidad') !!}
{!! Form::number('cantidad', @old('cantidad'), ['class' => 'form-control', 'required', 'step' => 'any']) !!}
{!! Form::label('unidad', 'Unidad de Medida (Gr, Ml, etc.)') !!}
{!! Form::text('unidad', @old('unidad'), ['class' => 'form-control', 'required']) !!}
{{-- FIN NUEVOS CAMPOS --}}
{{-- AJUSTE EN LA TABLA PARA MOSTRAR NUEVOS DATOS --}} @foreach ($Tamano as $report) @if (@$report['Estado']==1) @else @endif @endforeach
Id Tamaño Descripcion Cantidad Unidad Estado
{{ @$report['idVolumen'] }} {{ @$report['nombre'] }} {{ @$report['cantidad'] }} {{ @$report['unidad'] }}ActivoInactivo
{!! Form::close()!!}
{!!$Tamano->setPath('nuevoTamano')!!}
@endsection