@extends('emails.layout')

@section('content')
    <h2>Hello {{ $user->name }},</h2>
    <p>Your work report for <strong>{{ $report->created_at->format('d M, Y') }}</strong> has been updated.</p>

    <div style="margin: 20px 0;">
        <span class="badge {{ $report->approval_status == 'approved' ? 'bg-success' : 'bg-danger' }}">
            {{ ucfirst($report->approval_status) }}
        </span>
    </div>

    @if ($report->approval_status == 'rejected')
        <p>Your report was not approved. Please review the details and resubmit if necessary.</p>
    @else
        <p>Congratulations! Your work report has been approved by the administrator.</p>
    @endif

    <p>You can view the full details of your report and attendance history on your dashboard.</p>

    <a href="{{ route('reports.show', $report->id) }}" class="button">View Report</a>
@endsection
