@if (count($info['subscriptions']) > 0)
Current Subscriptions
You are currently subscribed to receive OSAA Heat Index Notifications for the following {{ (count($info['subscriptions']) > 1) ? 'areas' : 'area' }}:
@foreach ($info['subscriptions'] as $subscription)
- {{ $subscription->area->name }}
@endforeach
@endif
@if ($info['already_subscribed'])
You are already subscribed to receive OSAA Heat Index Notifications for the location named "{{ $info['area']->name }}".
You can manage your subscriptions by clicking the "My Subscriptions" tab after closing this dialog.
@else
{{ Form::open(array('url' => url('/heat-index/subscribe'))) }}
{{ Form::hidden('user_id', Auth::user()->id) }}
{{ Form::hidden('found_zmw_link', null) }}
{{ Form::hidden('found_query', null) }}
Subscribe
Area:
User Name: {{ Auth::user()->first_name }} {{ Auth::user()->last_name }}
{{ Form::checkbox('is_notify_email',
true,
true,
array('id' => 'is_notify_email',
'style' => 'vertical-align: middle;')) }}
{{ Form::label('is_notify_email', 'Send E-mail Alerts To:', array('style' => 'width: auto;')) }}
{{ Auth::user()->email }}
{{ Form::checkbox('is_notify_sms',
true,
true,
array('id' => 'is_notify_sms',
'style' => 'vertical-align: middle;')) }}
{{ Form::label('is_notify_sms', 'Send SMS/TXT Alerts To:', array('style' => 'width: auto;')) }}
{{ Form::text('mobile',
$info['phone_number'],
array('id' => 'subscribe_mobile',
'style' => 'width: 120px;')) }}
{{ Form::select('carrier', $info['carriers'], $info['carrier']) }}
If you change this number here, we will remember it on your OSAA account.
{{ Form::submit('Subscribe', array('id' => 'subscribe_submit_button')) }}
{{ Form::close() }}
@endif