@extends('index-left-sidebar') @section('content')

{{ $event_info['name'] }}

@php $event_start = new DateTime($event_info['start']); $event_end = new DateTime($event_info['end']); $event_days_diff = $event_start->diff($event_end)->d; @endphp @if($event_info['venue'] == 'physical') @if ($event_days_diff > 0) {{ date("d.m.Y. H:i", strtotime($event_info['start'])) . ' - ' . date("d.m.Y. H:i", strtotime($event_info['end'])) . ', ' . $event_info['v_name'] }} @else {{ date("d.m.Y. H:i", strtotime($event_info['start'])) . ', ' . $event_info['v_name'] }} @endif @else @if ($event_days_diff > 0) {{ date("d.m.Y. H:i", strtotime($event_info['start'])) . ' - ' . date("d.m.Y. H:i", strtotime($event_info['end'])) }} @else {{ date("d.m.Y. H:i", strtotime($event_info['start'])) }} @endif @endif

E-mail Activity

{{ Form::open(array('url' => '#','class' => 'tab-content form-horizontal form-bordered krik-form krik-send')) }}
1. Sending info
{{ Form::label('email_subject','E-mail Subject',array('class' => 'control-label')) }} @if ($mailing_activity->email_subject == null) {{ Form::text('email_subject', $event_info['name'], array('class' => 'form-control')) }} @else {{ Form::text('email_subject', $mailing_activity->email_subject, array('class' => 'form-control')) }} @endif
{{ Form::label('email_from_name','From Name',array('class' => 'control-label')) }} @if ($mailing_activity->email_from_name == null) {{ Form::text('email_from_name', $event_info['email_name'], array('class' => 'form-control')) }} @else {{ Form::text('email_from_name', $mailing_activity->email_from_name, array('class' => 'form-control')) }} @endif
{{ Form::label('email_from_email','From E-mail',array('class' => 'control-label')) }} @if ($mailing_activity->email_from_email == null) {{ Form::text('email_from_email', $event_info['email_sender'], array('class' => 'form-control')) }} @else {{ Form::text('email_from_email', $mailing_activity->email_from_email, array('class' => 'form-control')) }} @endif
{{ Form::label('email_replayto_email','Replay-to E-mail',array('class' => 'control-label')) }} @if ($mailing_activity->email_replyto_email == null) {{ Form::text('email_replayto_email', $event_info['email_sender'], array('class' => 'form-control')) }} @else {{ Form::text('email_replayto_email', $mailing_activity->email_replyto_email, array('class' => 'form-control')) }} @endif
E-mails to send: {{ count($mailing_list) }}
Sending E-mails:0/{{ count($mailing_list) }}
@foreach($mailing_list as $key=>$mail) @endforeach
No. Name E-mail Company Job Function Opt In Status
{{ $key+1 }} {{ $mail->title }} {{ $mail->f_name }} {{ $mail->l_name }} {{ $mail->mail }} {{ $mail->company }} {{ $mail->job }} @if($mail->opt) {{ $mail->method }} @else No @endif Waiting
2. E-mail Preview
{{ Form::label('preview_to_other','Send Preview to others:',array('class' => 'control-label')) }}
{{ Form::text('preview_to_other',null, array('class' => 'form-control','placeholder'=>'mail@example.com')) }}
{{Form::close()}}
{!! JsValidator::formRequest('App\Http\Requests\Events\Mailings\Send') !!} @endsection