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

{{ trans('promociones.tituloPromocionesProductos')}} {{ trans('promociones.mensajeAyuda') }}

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

{{ trans('promociones.listaPromociones') }}

@if(count($search) > 0) @endif
@foreach ($productos as $listproduct) {{-- @php dd($listproduct->funPromocion->idProducto == $listproduct->idProducto); @endphp --}} @if ($listproduct->funPromocion != null) @if($listproduct->funComanda) @else @endif @endif @endforeach
{{ trans('promociones.imagen') }} {{ trans('promociones.nombre') }} {{ trans('promociones.valor') }} {{ trans('promociones.categoria') }} {{ trans('promociones.comanda') }} {{ trans('promociones.estado') }} {{ trans('promociones.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('promociones.sinComanda') }} @if ($listproduct->idEstado == 1) {{ trans('promociones.activo') }} @else {{ trans('promociones.inactivo') }} @endif
{!! $productos->appends(Request::all())->render() !!}
@endsection @section('js') @endsection