Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
@component('mail::message')
|
||||
|
||||
{!! $form->notification_body !!}
|
||||
|
||||
|
||||
@if($form->notifications_include_submission)
|
||||
As a reminder, here are your answers:
|
||||
|
||||
@foreach($fields as $field)
|
||||
@if(isset($field['value']))
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
**{{$field['name']}}**
|
||||
|
||||
{!! is_array($field['value'])?implode(',',$field['value']):$field['value']!!}
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<p style="text-align:center"><small>You are receiving this email because you answered the form: <a href="{{url("forms/".$form->slug)}}">"{{$form->title}}"</a>.</small></p>
|
||||
|
||||
@endcomponent
|
||||
26
resources/views/mail/form/created.blade.php
Normal file
26
resources/views/mail/form/created.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
@component('mail::message')
|
||||
|
||||
Hey there 👋
|
||||
|
||||
Congrats! Your form "{{$form->title}}" was successfully created!
|
||||
|
||||
If you want to share your form, here is the link:
|
||||
|
||||
@component('mail::panel')
|
||||
{{$form->share_url}}
|
||||
@endcomponent
|
||||
|
||||
If you want to **embed your form in Notion**, simply type "/embed", confirm, and paste the URL above.
|
||||
If you want to add the form to your website, copy and paste the following code:
|
||||
@component('mail::panel')
|
||||
{{ '<iframe style="border:none;width:100%;" height="620px" src="'.$form->share_url.'"></iframe>' }}
|
||||
@endcomponent
|
||||
|
||||
Finally, we created a **Facebook group** with all the other users to share all the exciting news and tutorials about NotionForms.
|
||||
I would love to see you there, here is the link:
|
||||
|
||||
@component('mail::button', ['url' => config('links.facebook_group')])
|
||||
Join Facebook Group
|
||||
@endcomponent
|
||||
|
||||
@endcomponent
|
||||
19
resources/views/mail/form/submission-notification.blade.php
Normal file
19
resources/views/mail/form/submission-notification.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@component('mail::message')
|
||||
|
||||
Hello there 👋
|
||||
|
||||
Your form "{{$form->title}}" has a new submission.
|
||||
|
||||
@foreach($fields as $field)
|
||||
@if(isset($field['value']))
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
**{{$field['name']}}**
|
||||
|
||||
{!! is_array($field['value'])?implode(',',$field['value']):$field['value']!!}
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@endcomponent
|
||||
Reference in New Issue
Block a user