@extends('Templates.Dashboard') @section('content')

Dashboard

{{ $orders }}

PEDIDOS

Mas informacion

{{ $products }}

PRODUCTOS

Mas informacion

{{ $users }}

USUARIOS

Mas informacion

{{ $clients }}

CLIENTES

Mas informacion

GRAFICA VENTAS VENDEDORES

GRAFICA VENTAS MARCAS

GRAFICA VENTAS ESTADOS

PENDIENTE {{ $details->where('order.seller_status', 'Pendiente')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Pendiente')->sum('TOTAL') }} UNIDADES
EN MORA {{ $details->where('status', 'Suspendido')->where('order.wallet_status', 'En mora')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Suspendido')->where('order.wallet_status', 'En mora')->sum('TOTAL') }} UNIDADES
CANCELADO {{ $details->where('status', 'Cancelado')->where('order.seller_status', 'Cancelado')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Cancelado')->where('order.seller_status', 'Cancelado')->sum('TOTAL') }} UNIDADES
APROBADO {{ $details->where('status', 'Aprobado')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Aprobado')->sum('TOTAL') }} UNIDADES
RECHAZADO {{ $details->where('status', 'Cancelado')->where('order.wallet_status', 'Cancelado')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Cancelado')->where('order.wallet_status', 'Cancelado')->sum('TOTAL') }} UNIDADES
SUSPENDIDO {{ $details->where('status', 'Suspendido')->where('order.wallet_status', 'Suspendido')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Suspendido')->where('order.wallet_status', 'Suspendido')->sum('TOTAL') }} UNIDADES
COMPROMETIDO {{ $details->where('status', 'Comprometido')->where('order.dispatch_status', '!=', 'Despachado')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Comprometido')->where('order.dispatch_status', '!=', 'Despachado')->sum('order_dispatch_detail.TOTAL') }} UNIDADES
DESPACHADO {{ $details->where('status', 'Despachado')->where('order.dispatch_status', 'Despachado')->pluck('order_id')->unique()->count() }} PEDIDOS | {{ $details->where('status', 'Despachado')->where('order.dispatch_status', 'Despachado')->sum('order_dispatch_detail.TOTAL') }} UNIDADES

REPORTE GRAFICA CORRERIA

@endsection @section('script') {{-- --}} @endsection