@extends('emails.base')

@section('body')
    <h1 style="font-size:20px;margin:0 0 8px;">Daily digest — {{ $hotelName }}</h1>
    <p style="font-size:14px;color:#475569;line-height:1.6;">Here's how {{ $hotelName }} performed today, {{ now()->format('D j M Y') }}:</p>

    <div style="background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px;text-align:center;margin:18px 0;">
        <div style="font-size:11px;letter-spacing:3px;text-transform:uppercase;color:#64748b;">Revenue today</div>
        <div style="font-size:28px;font-weight:800;color:#a8871f;margin-top:6px;">{{ \App\Models\Setting::get('currency', '₦') }}{{ number_format($stats['revenue_today'], 2) }}</div>
    </div>

    <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="font-size:14px;">
        <tr><td style="padding:6px 0;color:#64748b;">Orders today</td><td align="right" style="font-weight:700;">{{ $stats['orders_today'] }}</td></tr>
        <tr><td style="padding:6px 0;color:#64748b;">Occupancy</td><td align="right" style="font-weight:700;">{{ $stats['occupancy'] }}%</td></tr>
        <tr><td style="padding:6px 0;color:#64748b;">Arrivals today</td><td align="right" style="font-weight:700;">{{ $stats['arrivals_today'] }}</td></tr>
        <tr><td style="padding:6px 0;color:#64748b;">Low-stock items</td><td align="right" style="font-weight:700;color:{{ $stats['low_stock'] > 0 ? '#b91c1c' : '#0f172a' }};">{{ $stats['low_stock'] }}</td></tr>
        <tr><td style="padding:6px 0;color:#64748b;border-top:1px solid #e2e8f0;">Pending housekeeping</td><td align="right" style="font-weight:700;border-top:1px solid #e2e8f0;">{{ $stats['pending_housekeeping'] }}</td></tr>
    </table>

    <p style="font-size:13px;color:#64748b;margin-top:22px;">Log in to your dashboard for the full breakdown.</p>
@endsection
