@extends('layouts.master') @section('page_title', $campaign->name) @section('content')
{{ Form::page_header($campaign->name, $campaign->type == \App\Models\Campaign::CAMPAIGN_TYPE_BUILD ? "build_campaign" : "convo_engage") }}
{{ Form::label_title("About the Campaign") }}
{{ Form::row_label_inline('Business Name', $business->company, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline("Campaign Name", $campaign->name, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Created By', $auth_user->full_name, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if($campaign->type == \App\Models\Campaign::CAMPAIGN_TYPE_BUILD) {{ Form::row_label_inline('Start Date',Carbon\Carbon::parse($campaign->start_date)->format('m/d/Y'), null, 4,6, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif @if($campaign->type == \App\Models\Campaign::CAMPAIGN_TYPE_ENGAGE) {{ Form::row_label_inline('Approximate Duration', $campaign->approximate_duration != null ? \App\Models\Campaign::$approximate_duration_map[$campaign->approximate_duration] : null, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif {{ Form::row_label_inline('Default Delay',($campaign->default_delay == 0) ? "0 " : $campaign->default_delay, 'default_delay', 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Milestone', $campaign->business_milestone != null ? $campaign->_business_milestone->name : null, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if($campaign->type == \App\Models\Campaign::CAMPAIGN_TYPE_BUILD) {{ Form::row_label_inline('Default Send Time', \Carbon\Carbon::parse($campaign->default_sendtime)->format('g:i A'), null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Default Duration', ($campaign->default_duration == 0) ? "0 " : $campaign->default_duration, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif {{ Form::row_label_inline('Industry', !empty($industry->industry_name) ? $industry->industry_name : '', null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if($campaign->type == \App\Models\Campaign::CAMPAIGN_TYPE_ENGAGE) {{ Form::row_label_inline('When Done', $campaign->when_done_label, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif {{ Form::button_click_col('Change Delay', 'change_delay()', 'change_delay_btn') }}
{{ Form::separator_row() }} {{ Form::label_inline('Change Delay', null, 4, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::number('delay', $campaign->default_delay, ['id="delay" class= "bt-input bt-text col-md-2"', 'style="margin: 8px"']) }}
{{ Form::button_click_col('Save Delay', 'save_delay()', 'save_delay') }} {{ Form::button_click_col('Cancel', 'exit_change_delay()', 'exit_change_delay') }}
{{ Form::row_label_inline('Status', $campaign->status_label, 'status-label', 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline("Default From Name", $campaign->default_from_name, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Campaign Type', \App\Models\Campaign::$campaign_type_map[$campaign->type], null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Diction', \App\Models\Campaign::$diction_map[$campaign->diction], null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Tone', $campaign->tones, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Delivery', $campaign->delivery_map, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Voice', $campaign->voice_map, null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_label_inline('Audience', implode(', ', $campaign_audience_label), null, 4, 7, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if(!$campaign_recording_links->isEmpty())
{{ Form::label_styled('Recording Links', 'campaign_recording_links', \App\Helpers\FormComponentHelper::SIZE_MEDIUM, 4) }}
    @foreach($campaign_recording_links as $campaign_recording_link)
  • {{ Form::label_link($campaign_recording_link->link_url, 'Link_'. $campaign_recording_link->campaign_recording_link,\App\Helpers\FormComponentHelper::SIZE_SMALL, 'link-label') }}
  • @endforeach
@endif
@include('shared.feedback._feedback_collection', ['request'=> $campaign, 'is_add_copy' => false, 'ignore_separator' => true ])
@if(\Gate::allows(\App\Providers\AuthServiceProvider::SUPER_ADMIN)) {{ Form::open(['url' => action('CampaignController@export', [$business->business,$campaign->campaign])]) }}
{{ Form::button_actual("SEND ALL AS TEST", "show_send_email_modal();", 'send_test_email_btn') }} @if($campaign->can_request_client_feedback()) {{ Form::button_link('Request Client Feedback', action('CampaignController@campaigns_review', [$business->business])) }} @endif @if(Gate::allows(\App\Providers\AuthServiceProvider::GATE_CONTENT_MANAGER)) {{ Form::button_save(\App\Http\Controllers\CampaignController::EXPORT_ARTICLE_REQUESTS, "action") }} {{--{{ Form::button_save(\App\Http\Controllers\CampaignController::EXPORT_DESIGN_REQUESTS , "action") }}--}} @endif {{ Form::button_link('PAUSE', action('CampaignController@pause', [$business->business,$campaign->campaign]), 'pause_btn') }} {{ Form::button_ex('UNPAUSE', 'unpause_campaign("'.action('CampaignController@unpause', [$business->business,$campaign->campaign]).'");', 'unpause_btn') }} {{--SNF 10/26/18 we don't do this anymore from here but we might bring it back --}} {{--@if($campaign->status == \App\Models\Campaign::STATUS_ACTIVE)--}} {{--{{ Form::button_link('Performance', action('CampaignController@performance', [$business->business,$campaign->campaign])) }}--}} {{--@endif--}} @if($campaign->can_launch()) {{ Form::button_link('LAUNCH', action('CampaignController@campaign_launch', [$business->business,$campaign->campaign])) }} @endif {{ Form::button_link('EDIT', action('CampaignController@edit_campaign', [$business->business,$campaign->campaign])) }} {{ Form::button_cancel() }}
{{ Form::close() }} @endif
{{ Form::label_title("Campaign Content") }}
@include('search._search_grid_wrapper') {{--@if(\Gate::allows(\App\Providers\AuthServiceProvider::CSMCCT))--}}
@if($campaign->can_submit()) {{ Form::button_ex('Submit to Content Manager', 'submit_events();', 'submit_all_btn') }} {{ Form::button_ex('Submit for Styling', 'submit_events();', 'submit_for_styling_btn') }} @endif @if($campaign->type == \App\Models\Campaign::CAMPAIGN_TYPE_BUILD) {{ Form::button_link('ADD FROM LIBRARY', action('CampaignController@add_campaign_content', compact('business','campaign')), 'add_from_library') }} @endif {{ Form::button_link('ADD ARTICLE', action('ArticleController@create', compact('business', 'campaign')), 'add_article') }} {{--{{ Form::button_link('ADD PROMOTION', action('PromoController@create', compact('business', 'campaign'))) }}--}}
{{--@endif--}}
@include('shared._send_email', ['title' => 'Send All Test Emails', 'post_url' => action('CampaignController@send_all_test_emails', compact('campaign'))]) @if($campaign->can_submit()) @include('shared._select_from_drop_down', ['type' => 'role', 'list' => $business->get_submit_roles_map(), 'title' => 'Select Promotion Ticket Assignee']) @endif @endsection {{--@extends('shared.show_preview', ['email' => true])--}} @section('page_script') @include('shared_script._drag_drop_helper') @include('shared_script._action_grid_script') @include('shared_script._list_manager') @include('shared_script._request_feedback_shared_script') @include('shared_script._multi_select_checkbox_script') @include('shared_script._send_email_script') @if($campaign->can_submit()) @include('shared_script._select_from_drop_down_script') @endif @endsection @section('page_style') @include('shared_style._action_grid_style') @include('shared_style._multi_select_checkbox_style') @endsection