@extends('emails.layout') @section('body') @if($recipient === 'client') {{-- Email to the CLIENT who just paid --}}
Your payment of ₦{{ number_format($invoice->total, 2) }} has been received successfully.
This is your payment receipt for invoice {{ $invoice->invoice_number }} from {{ $invoice->user->business_name }}.
@else {{-- Email to the BUSINESS OWNER --}}{{ $invoice->client->display_name }} has paid ₦{{ number_format($invoice->total, 2) }} for invoice {{ $invoice->invoice_number }}.
Great news! A payment has been confirmed on your OlaInvoice account. Login to view the full payment details.
@endif {{-- Payment details box --}}Please keep this email as your payment receipt. If you have any questions, contact {{ $invoice->user->business_name }} @if($invoice->user->email) at {{ $invoice->user->email }} @endif.
@endif @endsection