Files
ladill-transfer/resources/views/mail/notifications/transfer-recipient.blade.php
T
isaaccladandCursor c53191a41b
Deploy Ladill Transfer / deploy (push) Successful in 1m0s
Notify transfer owners when files enter grace period.
Send grace-entered and countdown emails to owners alongside recipient grace milestones so unpaid transfers get clear wallet top-up reminders before deletion.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 12:44:38 +00:00

82 lines
3.2 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')
<div class="highlight-box highlight-box-warning" style="margin-top:0;">
<p class="highlight-box-text">Grace period</p>
<p class="highlight-box-subtext">Download soon</p>
</div>
<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