@component('emails.layouts.html', ['subject' => __('Payment received from :name', ['name' => $transaction->accountFrom->accountable->name])]) {{-- Greeting --}}

{{ __('Hello') }} {{ $transaction->accountTo->accountable->full_name ?? $transaction->accountTo->accountable->name }},

{{-- Main message --}}

{!! __('You have received a new payment on your :account account from :from.', ['account' => $transaction->accountTo->name, 'from' => $transaction->accountFrom->accountable->name]) !!}

{{-- Transaction Details --}}

{{ __('Transaction Details:') }}

{{ __('Date:') }} {{ $transaction->updated_at->format('Y-m-d H:i') }}
{{ __('From:') }} {{ $transaction->accountFrom->accountable->name }}
{{ __('Description:') }} {{ $transaction->description }}
{{ __('Amount:') }} {{ tbFormat($transaction->amount) }}
{{-- Buttons --}} {{-- Closing --}}

{{ timebank_config('mail.platform_sign_off_signature.' . app()->getLocale()) ?? timebank_config('mail.platform_sign_off_signature.en', 'See you around!') }}

@endcomponent