HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/app/Mail/LocationDayPlanMail.php
<?php

namespace App\Mail;

use App\Komma\Locations\Models\Location;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class LocationDayPlanMail extends Mailable
{
    use Queueable, SerializesModels;

    /** @var Location */
    private $location;

    /** @var Collection */
    private $reservations;

    /** @var Carbon */
    private $date;

    /**
     * LocationDayPlanMail constructor.
     * @param Location $location
     * @param Collection $reservations
     * @param Carbon $date
     */
    public function __construct(Location $location, Collection $reservations, Carbon $date)
    {
        $this->location = $location;
        $this->reservations = $reservations;
        $this->date = $date;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->view('emails.admin.locationDayPlan')
            ->subject(__('site/email.location_day_plan.subject').' | '.$this->date->format('d-m-Y').' | Reserveringssysteem')
            ->with([
                'location' => $this->location,
                'reservations' => $this->reservations,
                'date' => $this->date,
            ]);
    }
}