@extends('emails.layouts.base')
@php $locale = $locale ?? 'pt-BR'; @endphp
@section('title')
@if($locale === 'pt-BR')
Alerta de Pagamentos
@elseif($locale === 'en')
Payment Alert
@else
Alerta de Pagos
@endif
@endsection
@section('content')
@if($locale === 'pt-BR')
{{-- Portuguese (Brazil) --}}
Este é o seu resumo de pagamentos para os próximos dias.
{{-- Summary Box --}}
Resumo Financeiro
|
Saldo Disponível
|
{{ $currency }} {{ number_format($totalBalance, 2, ',', '.') }}
|
|
Total a Pagar
|
{{ $currency }} {{ number_format($totalDue, 2, ',', '.') }}
|
|
Pagamentos Pendentes
|
{{ $totalPayments }}
|
{{-- Shortage Alert --}}
@if($shortage > 0)
{{ $currency }} {{ number_format($shortage, 2, ',', '.') }}
em falta para cobrir todos os pagamentos
@endif
{{-- Overdue Payments --}}
@if(count($overduePayments) > 0)
Pagamentos em Atraso
@foreach($overduePayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, ',', '.') }}
|
|
Venceu em {{ \Carbon\Carbon::parse($payment['due_date'])->format('d/m/Y') }}
ATRASADO
|
@endforeach
@endif
{{-- Tomorrow Payments --}}
@if(count($tomorrowPayments) > 0)
Vencem Amanhã
@foreach($tomorrowPayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, ',', '.') }}
|
|
{{ \Carbon\Carbon::parse($payment['due_date'])->format('d/m/Y') }}
AMANHÃ
|
@endforeach
@endif
{{-- Upcoming Payments --}}
@if(count($upcomingPayments) > 0)
Próximos Pagamentos
@foreach($upcomingPayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, ',', '.') }}
|
|
{{ \Carbon\Carbon::parse($payment['due_date'])->format('d/m/Y') }}
|
@endforeach
@endif
@elseif($locale === 'en')
{{-- English --}}
Here is your payment summary for the coming days.
{{-- Summary Box --}}
Financial Summary
|
Available Balance
|
{{ $currency }} {{ number_format($totalBalance, 2, '.', ',') }}
|
|
Total Due
|
{{ $currency }} {{ number_format($totalDue, 2, '.', ',') }}
|
|
Pending Payments
|
{{ $totalPayments }}
|
@if($shortage > 0)
{{ $currency }} {{ number_format($shortage, 2, '.', ',') }}
short to cover all payments
@endif
@if(count($overduePayments) > 0)
Overdue Payments
@foreach($overduePayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, '.', ',') }}
|
|
Due {{ \Carbon\Carbon::parse($payment['due_date'])->format('M d, Y') }}
OVERDUE
|
@endforeach
@endif
@if(count($tomorrowPayments) > 0)
Due Tomorrow
@foreach($tomorrowPayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, '.', ',') }}
|
|
{{ \Carbon\Carbon::parse($payment['due_date'])->format('M d, Y') }}
TOMORROW
|
@endforeach
@endif
@if(count($upcomingPayments) > 0)
Upcoming Payments
@foreach($upcomingPayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, '.', ',') }}
|
|
{{ \Carbon\Carbon::parse($payment['due_date'])->format('M d, Y') }}
|
@endforeach
@endif
@else
{{-- Spanish (default) --}}
Este es tu resumen de pagos para los próximos días.
{{-- Summary Box --}}
Resumen Financiero
|
Saldo Disponible
|
{{ $currency }} {{ number_format($totalBalance, 2, ',', '.') }}
|
|
Total a Pagar
|
{{ $currency }} {{ number_format($totalDue, 2, ',', '.') }}
|
|
Pagos Pendientes
|
{{ $totalPayments }}
|
@if($shortage > 0)
{{ $currency }} {{ number_format($shortage, 2, ',', '.') }}
faltan para cubrir todos los pagos
@endif
@if(count($overduePayments) > 0)
Pagos Vencidos
@foreach($overduePayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, ',', '.') }}
|
|
Venció el {{ \Carbon\Carbon::parse($payment['due_date'])->format('d/m/Y') }}
VENCIDO
|
@endforeach
@endif
@if(count($tomorrowPayments) > 0)
Vencen Mañana
@foreach($tomorrowPayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, ',', '.') }}
|
|
{{ \Carbon\Carbon::parse($payment['due_date'])->format('d/m/Y') }}
MAÑANA
|
@endforeach
@endif
@if(count($upcomingPayments) > 0)
Próximos Pagos
@foreach($upcomingPayments as $payment)
|
{{ $payment['description'] }}
|
{{ $currency }} {{ number_format($payment['amount'], 2, ',', '.') }}
|
|
{{ \Carbon\Carbon::parse($payment['due_date'])->format('d/m/Y') }}
|
@endforeach
@endif
@endif
@endsection