@extends('maileclipse::layout.app') @section('title', 'View Mailable') @section('content')
Details
@if ( !empty($resource['data']->subject) ) @endif @if ( !empty($resource['data']->locale) ) @endif @if ( !empty($resource['data']->cc) ) @endif @if ( !empty($resource['data']->bcc) ) @endif
Name {{ $resource['name'] }}
Namespace {{ $resource['namespace'] }}
Subject {{ $resource['data']->subject }}
Locale {{ $resource['data']->locale }}
From @if (!collect($resource['data']->from)->isEmpty()) {{ collect($resource['data']->from)->first()['address'] }} @else {{ config('mail.from.address') }} (default) @endif
Reply To @if (!collect($resource['data']->replyTo)->isEmpty()) {{ collect($resource['data']->replyTo)->first()['address'] }} @else {{ config('mail.reply_to.address') }} (default) @endif
cc @foreach( $resource['data']->cc as $cc ) {{ $cc['address'] }} @endforeach
bcc @foreach( $resource['data']->bcc as $bcc ) {{ $bcc['address'] }} @endforeach
Preview
@if ( $resource['view_path'] !== null ) Edit Template @endif
@endsection