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

{{ trans('dashboard.dashboard') }} {{ trans('dashboard.platoConMayorDemanda') }}

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

{{ trans('dashboard.lsitadoPlatos') }}

@if(count($search) > 0) @endif

@if(isset($_GET["fechaInicio"]) || isset($_GET["fechaFinal"])) @if(date_create($_GET["fechaInicio"])->format('Y-m-d h:i:s A') == date('Y-m-d h:i:s A',strtotime("now"))) @php $fechaInicio = date('Y-m-d ',strtotime("now -50 year")) ."00:00:00"; $fechaFinal = date_create($_GET["fechaFinal"])->format('Y-m-d h:i:s A'); @endphp @else @php $fechaInicio = date_create($_GET["fechaInicio"])->format('Y-m-d h:i:s A'); $fechaFinal = date_create($_GET["fechaFinal"])->format('Y-m-d h:i:s A'); @endphp @endif {{$fechaInicio.' - '.$fechaFinal}} @endif

@if (count($productos) > 0) @foreach ($productos as $listproduct) @if(isset($listproduct->producto)) @endif @if(!isset($listproduct->producto)) @endif @if(isset($listproduct->producto)) @endif @if(!isset($listproduct->producto)) @endif @endforeach @else @endif
{{ trans('dashboard.top') }} {{ trans('dashboard.imagen') }} {{ trans('dashboard.valor') }} {{ trans('dashboard.nombre') }} {{ trans('dashboard.vendidos') }} {{ trans('dashboard.total') }}
{{$loop->iteration}} @if($listproduct->img == null) @else @endif {{$listproduct->producto->valor}} {{App\Helpers\monedaH::getCurrentSimbol()}}0 {{$listproduct->nombre}} {{$listproduct->cantidad}} {{$listproduct->valorTotal}} {{App\Helpers\monedaH::getCurrentSimbol()}}0
{{ trans('dashboard.noSeEncontraronRegistros') }}
{{-- {!! $productos->render() !!} --}}
@endsection @section('js') @endsection