File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/views/emails/customer/almostReady.blade.php
@extends('emails.master')
@section('style')
.c-table {
border-spacing: 0;
}
.c-table td,
.c-table th {
font-size: 14px;
}
.c-table tbody tr .c-table-item {
padding: 10px 0;
border-top: 1px solid #ebedf1;
}
.c-table tbody tr:first-child .c-table-item {
border-top: none;
}
.c-table--summary td,
.c-table-item {
padding: 5px 0;
}
.c-table-item--note {
margin-top: 5px;
}
.c-table-heading-item {
padding-bottom: 5px;
border-bottom: 1px solid #74787E;
}
.c-table th,
.c-table strong{
color: #2F3133;
}
.c-table-row--btw th,
.c-table-row--btw td{
color: #9ea0a2;
}
.c-table--summary tr.c-table-row--divider td{
padding: 10px 0 5px;
border-top: 1px solid #74787E;
}
.c-table--summary td {
text-align: right;
}
.c-table-item__sub, .c-table-item__sub strong {
color: #9ea0a2;
}
.c-deposit {
margin-left: 10px;
font-size: 20px;
}
.c-deposit small {
margin-right: 5px;
}
@endsection
@section('title')
@lang('site/email.almost_ready.subject') | {{ config('site.company.name') }}
@endsection
@php
$faqUrl = 'https://farmfun.be/veelgestelde-vragen';
$customerUrl = 'https://farmfun.be/bezoeker';
$contactUrl = 'https://farmfun.be/contact';
@endphp
@section('content')
<p style="font-size: 15px;">
<strong style="display: inline-block; width: 200px; color: #000;">Reserveringsnummer:</strong> {{ $reservation->reservation_number }}<br/>
<strong style="display: inline-block; width: 200px; color: #000;">Datum:</strong> {{ $reservation->getDateAsDateTime()->format('d-m-Y') }}<br/>
<strong style="display: inline-block; width: 200px; color: #000;">Vestiging:</strong> {{ $reservation->location->translation->name }}<br/>
</p>
<p>Koeiendag {{ $reservation->first_name }},</p>
<p>Jouw event staat voor de (stal) deur. We hebben alvast de farmbitie er een onvergetelijk team<i>moooh</i>ment van te maken! Momenteel treffen we de laatste voorbereidingen om er een optimale plezier-ervaring van te maken. Wijzigingen in de boeking zijn vanaf nu niet meer mogelijk.</p>
<div style="margin-top: 40px; margin-bottom: 40px;">
<h2 style="margin-bottom: 20px;">Dit staat voor jou op de planning</h2>
@if(isset($reservation->items) && $reservation->items->count() > 0)
<table class="c-table">
<thead>
<tr style="padding-bottom: 10px;">
<th class="c-table-heading-item" width="250" style="text-align: left; vertical-align: bottom;">Activiteit</th>
<th class="c-table-heading-item" width="60" style="text-align: left; vertical-align: bottom;">Aantal<br/>Pers.</th>
@if($reservation->items->where('price_start_up', '>', 0)->count() >= 1)
<th class="c-table-heading-item" width="80" style="text-align: left; vertical-align: bottom;">Prijs p.p.</th>
<th class="c-table-heading-item" width="80" style="text-align: left; vertical-align: bottom;">Opstart</th>
<th class="c-table-heading-item" width="80" style="text-align: right; vertical-align: bottom;">Totaal</th>
@else
<th class="c-table-heading-item" width="80" style="text-align: left; vertical-align: bottom;">Prijs p.p.</th>
<th class="c-table-heading-item" width="80" style="text-align: right; vertical-align: bottom;">Totaal</th>
@endif
</tr>
</thead>
<tbody>
@php
$orderTotal = 0;
@endphp
@foreach($reservation->items as $reservationItem)
<tr>
<td class="c-table-item" valign="top">
<strong>{!! isset($reservationItem->product->translation) ? $reservationItem->product->translation->name : $reservationItem->product->translation()->withTrashed()->first()->name . ' (Product is verwijderd)' !!}</strong><br/>
@if($reservationItem->getStartInDateTime() !== null && $reservationItem->getEndInDateTime() !== null){{ $reservationItem->getStartInDateTime()->format('H:i') }} - {{ $reservationItem->getEndInDateTime(true)->format('H:i') }}@endif
@if(!empty($reservationItem->remarks))<br/><div class="c-table-item__sub c-table-item--note"><strong>Opmerking: </strong> {!! nl2br($reservationItem->remarks) !!}</div>@endif
</td>
<td class="c-table-item" style="text-align: left;" valign="top">
{{ $reservationItem->quantity }} x
</td>
@if($reservation->items->where('price_start_up', '>', 0)->count() >= 1)
<td class="c-table-item" style="text-align: left;" valign="top">
@if($reservationItem->price_each_unit != 0){{ config('site.shop_currency') }} {{ euro_pricing_format($reservationItem->price_each_unit) }}@endif
</td>
<td class="c-table-item" style="text-align: left;" valign="top">
@if($reservationItem->price_each_unit != 0 && $reservationItem->price_start_up)+ @endif
@if($reservationItem->price_start_up != 0){{ config('site.shop_currency') }} {{ euro_pricing_format($reservationItem->price_start_up) }}<br/>@endif
</td>
@else
<td class="c-table-item" style="text-align: left;" valign="top">
@if($reservationItem->price_each_unit != 0){{ config('site.shop_currency') }} {{ euro_pricing_format($reservationItem->price_each_unit) }}@endif
</td>
@endif
<td class="c-table-item" style="text-align: right;" valign="top">{{ config('site.shop_currency') }} {{ euro_pricing_format($reservationItem->price_total) }}</td>
</tr>
@php
$orderTotal += $reservationItem->price_total;
@endphp
@endforeach
<tr class="c-table-row--divider">
<td colspan="5"><strong>Totaal</strong>: {{ config('site.shop_currency') }} {{ euro_pricing_format($orderTotal) }}</td>
</tr>
</tbody>
</table>
@endif
</div>
<p> </p>
<h4 style="margin-bottom: 0;">Je kudde inlichten?</h4>
<p>Wellicht willen je kuddegenoten weten welke kledij ze moeten aantrekken of wat hen te wachten staat. Bezorg hen daarom best volgende link: <a target="_blank" href="{{ $customerUrl }}">{{ $customerUrl }}</a>.</p>
<p> </p>
<h4 style="margin-bottom: 0;">Betaling</h4>
<p>Je hoeft ter plaatse niets af te rekenen. Alles wordt verrekend op de eindfactuur die we per mail bezorgen.</p>
<p> </p>
<h4 style="margin-bottom: 0;">Routebeschrijving</h4>
<p>Klik <a target="_blank" href="{{ $contactUrl }}">hier</a> om de route te plannen naar de FarmFun boerderij in {{ $reservation->location->translation->name }}.</p>
<p> </p>
<h4 style="margin-bottom: 0;">Nog vragen?</h4>
<p>Het antwoord vind je vast in onze <a target="_blank" href="{{ $faqUrl }}">FAQ’s</a>.</p>
<p> </p>
<p>
Tot gauw!<br/>
<br/>
Team FarmFun
</p>
<p> </p>
<p>Let op! Beantwoord deze mail niet, want de koeien in die stal lezen hun mails niet.</p>
@endsection
@section('layout')
@include('emails.components.headerBar', ['headerBarTitle' => 'Het is bijna zover!'])
@include('emails.components.body')
@include('emails.components.prefooter')
@include('emails.components.footer', ['companyName' => '© ' . config('site.company.name') .' '. \Carbon\Carbon::now()->year])
@endsection