@extends('template.layoutAdmin', ['activeButton'=>'productos']) @section('style') @endsection @section('title') {{ trans('productos.tituloProductos') }} @endsection @section('cabecera')

{{ trans('productos.tituloProductos') }} {{ trans('productos.mensajeAyuda') }}

@endsection @section('contenido')
@if(Session::has('message')) @endif @if(Session::has('message_error')) @endif @if(Session::has('message_error_moneda')) @endif

{{ trans('productos.listaProductos') }}

@if(count($search) > 0) @endif
@foreach ($productos as $listproduct) @if($listproduct->funComanda) @else @endif @endforeach
{{ trans('productos.imagen') }} {{ trans('productos.nombre') }} {{ trans('productos.valor') }} {{ trans('productos.categoria') }} {{ trans('productos.comanda') }} {{ trans('productos.estado') }} {{ trans('productos.opciones') }}
@if($listproduct->imagen == null) @else @endif {{substr($listproduct->nombre, 0, 50)}}... @switch($listproduct->valoracion) @case(1) @break @case(2) @break @case(3) @break @case(4) @break @case(5) @break @default @endswitch {{App\Helpers\monedaH::getCurrentSimbol() ." " .number_format($listproduct->valor, 2, ',', '.')}} {{$listproduct->funsubCategoria->nombre}}{{$listproduct->funComanda->nombre}} {{ trans('productos.sinComanda') }} @switch($listproduct->idEstado) @case(1) {{ trans('inventario.activo') }} @break @case(2) {{ trans('inventario.agotado') }} @break @case(0) {{ trans('inventario.inactivo') }} @break @endswitch
@csrf @method('PUT')
{!! $productos->appends(Request::all())->render() !!}
@endsection @section('js') @endsection