<?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 EmailReceipt extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(

        public readonly object $schedule,

        public readonly string $client_name,

        public readonly string $service_date,

        public readonly string $start_time,

        public readonly string $end_time,

        public readonly string $address,

        public readonly string $total_amount,

        public readonly string $service_fee,

        public readonly string $final_amount,

        public readonly string $payment_method,

    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(

            subject: __('mail.service_completed.subject'),

        );
    }

    public function content(): Content
    {
        return new Content(

            view: 'emails.email_receipt',

        );
    }

    public function attachments(): array
    {
        return [];
    }
}
