@extends('layouts.app') @section('title','Dashboard') @section('content')

Welcome, {{ auth()->user()->name }}

@foreach($stats as $label=>$v)
{{ $label }}
{{ $v }}
@endforeach

Recent Tickets

+ New
@forelse($tickets as $t) #{{ $t->id }} {{ $t->subject }} @empty

No tickets.

@endforelse

Recent Orders

@forelse($orders as $o)
#{{ $o->id }} {{ $o->product->name ?? 'Deleted product' }}@if(auth()->user()->isAdmin()) - {{ $o->user->name }}@endif
@empty

No orders.

@endforelse
@endsection