Skip to content

Commit

Permalink
Merge pull request playasoft#189 from Tompiosh/master
Browse files Browse the repository at this point in the history
Updated shift confirmation email
  • Loading branch information
itsrachelfish authored Mar 2, 2020
2 parents 03ca747 + 41e132c commit 6e52598
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
6 changes: 3 additions & 3 deletions laravel/app/Listeners/SendUserShiftConfirmation.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function handle(SlotChanged $event)
$user_name = $event->change['name'];
$event_name = $event->slot->schedule->shift->event->name;
$shift_name = $event->slot->schedule->shift->name;
$start_date = $event->slot->start_date;
$start_time = $event->slot->start_date;
$end_time = $event->slot->end_time;
$start_date = date('l M d',strtotime($event->slot->start_date));
$start_time = date('h:i a',strtotime($event->slot->start_time . $event->slot->start_date));
$end_time = date('h:i a',strtotime($event->slot->end_time . $event->slot->start_date));

$admin_assigned = false;
if (isset($event->change['admin_assigned']))
Expand Down
22 changes: 4 additions & 18 deletions laravel/resources/views/emails/user-shift-confirmation.blade.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
<h1>You're signed up for the {{ $shift_name }} shift!</h1>

@if ($admin_assigned)
<h1>You're signed up for a {{ $shift_name }} shift at {{ $event_name }}!</h1>
<p>
This is a confirmation email for the {{ $shift_name }} shift
that you were recently assigned to for the {{ $event_name }} event.
Your shift will take place on {{ $start_date}} between {{ $start_time }} and {{ $end_time }}.
</p>
@else
<p>
This is a confirmation email for the {{ $shift_name }} shift
you recently picked up for the {{ $shift_name }} event.
For volunteer ticketing information, please visit the {{ $event_name }} ticketing webpage.
</p>
@endif

<p>
This shift takes place on {{ $start_date}} between the times of
{{ $start_time }} and {{ $end_time }}.
If you did NOT sign up for this shift or would like to CANCEL this shift, <a href="{{ env('SITE_URL').'/slot/'.$slot->id.'/view' }}">click here</a>.
</p>

<p>
If you did <b>NOT</b> sign-up for this shift or would like to <b>CANCEL</b> this
shift, <a href="{{ env('SITE_URL').'/slot/'.$slot->id.'/view' }}">click here</a>.
</p>

<p>
Otherwise, we look forward to seeing you there!
</p>

0 comments on commit 6e52598

Please sign in to comment.