@extends('crm::emails.layout', [
    'subject' => 'CRM Enquiry Processing Issues',
    'colours' => $colours,
])

@section('content')
<p>The following tenants have had enquiry processing failures recorded today:</p>
@foreach($failures as $failure)

    <h3>{{ $failure['tenant_id'] }}</h3>
    <ul>
    @foreach($failure['failures']->groupBy('action_name') as $action => $group)
            <li><em>{{ $action }}</em> - {{ $group->count() }} failed notifications</li>
    @endforeach
    </ul>
@endforeach
@endsection
