@extends('emails.master')

@section('title','Booking Update')

@section('content')

<h2 style="color:#0b3a6f; margin-top:0;">
Hello {{ $student->name  }},
</h2>

<p style="font-size:15px; color:#555; line-height:1.6;">
We regret to inform you that your booking request has been <strong>declined by the tutor</strong>.
</p>

<p style="font-size:15px; color:#555; line-height:1.6;">
Here are the details of your requested session:
</p>

<table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse; margin-top:20px; font-size:14px;">
    <tbody>

        <tr>
            <td style="padding:10px; border:1px solid #eee; background:#f9f9f9; width:40%;">
                <strong>Tutor</strong>
            </td>
            <td style="padding:10px; border:1px solid #eee;">
                {{ $tutor->first_name . ' ' . $tutor->last_name }}
            </td>
        </tr>

        <tr>
            <td style="padding:10px; border:1px solid #eee; background:#f9f9f9;">
                <strong>Session Date & Time</strong>
            </td>

            <td style="padding:10px; border:1px solid #eee;">
               @foreach ($booking->sessions as $slot)
    {{ \Carbon\Carbon::parse($slot->session_date_time)->format('d M Y') }} |
    {{ \Carbon\Carbon::parse($slot->session_date_time)->format('h:i A') }}
    <br>
@endforeach
            </td>
        </tr>

    </tbody>
</table>


<p style="margin-top:20px; font-size:14px; color:#555;">
You can explore other tutors and book a new session at your convenience.
</p>


<p style="font-size:14px;">
If you have any questions, feel free to contact us.
</p>

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

@endsection