opnform/resources/views/mail/form/submission-notification.bla...

25 lines
538 B
PHP
Raw Normal View History

2022-09-20 19:59:52 +00:00
@component('mail::message')
Hello there 👋
Your form "{{$form->title}}" has a new submission.
@foreach($fields as $field)
@if(isset($field['value']))
--------------------------------------------------------------------------------
**{{$field['name']}}**
@if($field['type'] == 'files')
<br/>
@foreach($field['email_data'] as $link)
<a href="{{$link['signed_url']}}">{{$link['label']}}</a> <br/>
@endforeach
@else
2022-09-20 19:59:52 +00:00
{!! is_array($field['value'])?implode(',',$field['value']):$field['value']!!}
@endif
2022-09-20 19:59:52 +00:00
@endif
@endforeach
@endcomponent