<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class BookingSubmittedMail extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(
        public string $userName,
        public string $ref,
        public string $facility,
        public string $dates,
        public float  $amount,
    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(subject: "استلام طلب الحجز {$this->ref} — نادي الإيمان ٢");
    }

    public function content(): Content
    {
        return new Content(view: 'emails.booking_submitted');
    }
}
