@extends('layouts.email') @section('content')

Transaction monthly summary

Dear {{$user->name}},

@if(count($transaction))

This is summary from {{ $previous }} to {{ $current }}.

@foreach($transaction as $tr) @if($tr->business)

- {{$tr->business->name}}

Income {{$tr->income >= 0 ? '£'.Helper::formatAmount($tr->income) : '(£'.Helper::formatAmount(abs($tr->income)).')'}}
Expanse {{$tr->expanse >= 0 ? '£'.Helper::formatAmount($tr->expanse) : '(£'.Helper::formatAmount(abs($tr->expanse)).')'}}
Total {{$tr->total >= 0 ? '£'.Helper::formatAmount($tr->total) : '(£'.Helper::formatAmount(abs($tr->total)).')'}}
@endif @endforeach @else No transaction from {{ $previous }} to {{ $current }}. @endif

Report date: {{ \Carbon\Carbon::now()->format('d M Y') }}

@endsection