@extends('mail.notifications.layout') @section('email-header') @include('mail.partials.brand-header', ['brand' => 'transfer']) @endsection @section('email-footer') @include('mail.partials.brand-footer', ['brand' => 'transfer']) @endsection @section('content') @php $fileCount = $transfer->files->count(); $availableUntil = $transfer->isInGracePeriod() ? $transfer->grace_ends_at : $transfer->paid_until; $fmtBytes = function (int $bytes) { if ($bytes >= 1048576) { return number_format($bytes / 1048576, 1).' MB'; } if ($bytes >= 1024) { return number_format($bytes / 1024, 0).' KB'; } return $bytes.' B'; }; @endphp @if($milestone === 'created')
@if($senderName) {{ $senderName }} shared {{ $fileCount === 1 ? 'a file' : $fileCount.' files' }} with you through Ladill Transfer. @else Someone shared {{ $fileCount === 1 ? 'a file' : $fileCount.' files' }} with you through Ladill Transfer. @endif
@elseif($milestone === 'grace')Grace period
Download soon
The transfer {{ $transfer->title }} is in a grace period. @if($availableUntil) Files will be deleted on {{ $availableUntil->format('F j, Y') }} unless payment is received. @endif
@else{{ $transfer->title }} @if($daysRemaining === 1) will become unavailable tomorrow. @else will become unavailable in {{ $daysRemaining }} days. @endif
@endifTransfer
Title
{{ $transfer->title }}
Files
{{ $fileCount }} {{ $fileCount === 1 ? 'file' : 'files' }} ยท {{ $fmtBytes($transfer->storage_bytes) }}
{{ $file->original_name }}
{{ $fmtBytes($file->size_bytes) }}
Message from sender {{ $transfer->message }}
@endif @if($transfer->isPasswordProtected())This transfer is password protected. The sender will share the password with you separately.
@endif| Download {{ $fileCount === 1 ? 'file' : 'files' }} |
Or copy this link into your browser:
{{ $publicUrl }}
Available until {{ $availableUntil->format('F j, Y') }}.
@endif @endsection