@extends('emails.master')

@section('title', 'Session Reschedule Update')

@section('content')

    <h2 style="color:#0b3a6f; margin-top:0;">
        Session Reschedule Update 📅
    </h2>

    <p style="font-size:15px; color:#555; line-height:1.6;">
        Hello {{ $session->student->name }},
    </p>

    <p style="font-size:15px; color:#555; line-height:1.6;">
        Your request to reschedule the session with
        <strong>{{ $session->tutor->name }}</strong> has been
        <strong style="color: {{ $session->rescheduled_status == 'approved' ? '#28a745' : '#dc3545' }};">
            {{ ucfirst($status) }}
        </strong>.
    </p>

    @if ($status == 'approved')
        <p style="font-size:15px; color:#555; line-height:1.6;">
            Your session has been successfully rescheduled. Here are the updated details:
        </p>

        <ul style="font-size:14px; color:#333; line-height:1.6;">
            <li><strong>Date:</strong> {{ $session->start_date }}</li>
            <li><strong>Start Time:</strong> {{ $session->start_time_formatted }}</li>
            <li><strong>End Time:</strong> {{ $session->end_time_formatted }}</li>

        </ul>
    @else
        <p style="font-size:15px; color:#555; line-height:1.6;">
            Unfortunately, the tutor was unable to approve your requested time.
            You may try requesting another time that suits both of you.
        </p>
    @endif

    <br>

    <p style="font-size:14px; color:#777;">
        If you have any questions, feel free to contact our support team.
    </p>

    <br>

    <p style="font-size:14px;">
        Regards,<br>
        <strong>Tutera Learning Team</strong>
    </p>

@endsection
