@extends('admin.layouts.app') @section($title, $subtitle) @section('content')

Buen día, {{ Auth::user()->name }}!

Esto es lo que está sucediendo con su empresa la ultima semana...

Menus de la semana

@php $grandTotalQuantity = 0; $grandTotalPrice = 0; @endphp @foreach($result as $categoryId => $menus) @foreach($menus as $menu) @php $grandTotalQuantity += $menu['total_quantity']; $grandTotalPrice += $menu['total_price']; @endphp @endforeach @endforeach
Menu Días Cantidad Total
{{ $categories[$categoryId] }}
{{ $menu['menu_name'] }}
{{ implode(', ', $menu['days']) }}
{{ $menu['total_quantity'] }}
{{ $menu['total_price'] }} USD
Total General: {{ $grandTotalQuantity }} {{ $grandTotalPrice }} USD

Listado de prospectos

@foreach ($prospects as $prospect) @endforeach
{{$prospect->module}}
{{ \Carbon\Carbon::parse($prospect->created_at)->format('j F Y') }}
{{$prospect->module}}
Nombre
{{$prospect->email}}
Correo
{{$prospect->phone}}
Celular

Listado de testimonios

@foreach ($testimonies as $testimony) @endforeach
{{$testimony->name}}
{{ \Carbon\Carbon::parse($testimony->created_at)->format('j F Y') }}
@php $comment = $testimony->comment; $length = strlen($comment); $formattedComment = ''; for ($i = 0; $i < $length; $i += 50) { if ($i / 50 >= 3) { $formattedComment .= '...'; break; } $formattedComment .= substr($comment, $i, 50) . '
'; } // Remove the last
if we didn't add "..." if ($i / 50 < 3) { $formattedComment = rtrim($formattedComment, '
'); } @endphp {!! $formattedComment !!}
@endsection