Deploy Ladill Transfer / deploy (push) Successful in 44s
Recipients can be emailed the download link immediately and at optional reminders (7/3/1 days before unavailable, or when grace period starts). Co-authored-by: Cursor <cursoragent@cursor.com>
77 lines
3.0 KiB
PHP
77 lines
3.0 KiB
PHP
@extends('mail.notifications.layout')
|
|
|
|
@section('content')
|
|
@php
|
|
$fileCount = $transfer->files->count();
|
|
$availableUntil = $transfer->isInGracePeriod()
|
|
? $transfer->grace_ends_at
|
|
: $transfer->paid_until;
|
|
@endphp
|
|
|
|
<div class="highlight-box highlight-box-success">
|
|
<p class="highlight-box-text">📁 File transfer</p>
|
|
<p class="highlight-box-subtext">{{ $transfer->title }}</p>
|
|
</div>
|
|
|
|
@if($milestone === 'created')
|
|
<h1 class="email-title">You have files to download</h1>
|
|
<p class="email-text">
|
|
@if($senderName)
|
|
<strong>{{ $senderName }}</strong> shared {{ $fileCount === 1 ? 'a file' : $fileCount.' files' }} with you via Ladill Transfer.
|
|
@else
|
|
Someone shared {{ $fileCount === 1 ? 'a file' : $fileCount.' files' }} with you via Ladill Transfer.
|
|
@endif
|
|
</p>
|
|
@elseif($milestone === 'grace')
|
|
<h1 class="email-title">Download before these files are removed</h1>
|
|
<p class="email-text">
|
|
The transfer <strong>{{ $transfer->title }}</strong> is in a grace period.
|
|
@if($availableUntil)
|
|
Files will be deleted on <strong>{{ $availableUntil->format('F j, Y') }}</strong> unless payment is received.
|
|
@endif
|
|
</p>
|
|
@else
|
|
<h1 class="email-title">Reminder: download your files</h1>
|
|
<p class="email-text">
|
|
<strong>{{ $transfer->title }}</strong>
|
|
@if($daysRemaining === 1)
|
|
will become unavailable tomorrow.
|
|
@else
|
|
will become unavailable in {{ $daysRemaining }} days.
|
|
@endif
|
|
</p>
|
|
@endif
|
|
|
|
@if($transfer->message)
|
|
<p class="email-text" style="background:#f8fafc;border-radius:10px;padding:14px 16px;color:#475569;">
|
|
{{ $transfer->message }}
|
|
</p>
|
|
@endif
|
|
|
|
@if($transfer->isPasswordProtected())
|
|
<p class="email-text" style="font-size:13px;color:#b45309;">
|
|
This transfer is password protected. The sender will need to share the password with you separately.
|
|
</p>
|
|
@endif
|
|
|
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin:24px 0;">
|
|
<tr>
|
|
<td align="center">
|
|
<a href="{{ $publicUrl }}" class="email-button" style="display:inline-block;background:#4f46e5;color:#ffffff;text-decoration:none;padding:12px 28px;border-radius:10px;font-size:14px;font-weight:600;">
|
|
Download files
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p class="email-text" style="font-size:13px;color:#6b7280;">
|
|
Or open this link: <a href="{{ $publicUrl }}" style="color:#4f46e5;">{{ $publicUrl }}</a>
|
|
</p>
|
|
|
|
@if($availableUntil && $milestone !== 'grace')
|
|
<p class="email-text" style="font-size:13px;color:#6b7280;">
|
|
Available until {{ $availableUntil->format('F j, Y') }}.
|
|
</p>
|
|
@endif
|
|
@endsection
|