@extends('layouts.master') @section('page_title',$title) @section('content')
{{ Form::page_header($title, "paper_stack") }}
@if ($campaign_deliverable->uses_builder)
@elseif($campaign_deliverable->type == \App\Models\Campaign_Deliverable::DELIVERABLE_TYPE_SMS) @include('reach.campaign_event.content_block.sms.text_preview') @endif
@if ($campaign_deliverable->type == \App\Models\Campaign_Deliverable::DELIVERABLE_TYPE_EMAIL) @if(\Gate::allows(\App\Providers\AuthServiceProvider::GATE_CAN_SEE_INVITE_CLIENT_TO_REVIEW_BUTTON)) {{ Form::button_actual("Invite Client to Review", "open_multi_select_modal('".\App\Http\Controllers\BusinessTicketController::INVITE_CLIENT_MODAL."', 'send_invitation_emails');") }} @endif {{ Form::button_actual("SEND TEST EMAIL", "show_send_email_modal();", 'send_test_email_btn') }} @endif @if ($campaign_deliverable->can_submit_feedback()) {{ Form::button_actual("Submit Feedback", "submit_feedback();") }} @endif @if($campaign_deliverable->can_format_from_client_review()) {{ Form::button_link('Format', $campaign_deliverable->design_url) }} @endif
@if ($campaign_deliverable->type == \App\Models\Campaign_Deliverable::DELIVERABLE_TYPE_EMAIL) @include('shared._send_email', ['title' => 'Send Test Email', 'post_url' => action('CampaignDeliverableController@send_test_email', compact('campaign_deliverable'))]) @if(\Gate::allows(\App\Providers\AuthServiceProvider::GATE_CAN_SEE_INVITE_CLIENT_TO_REVIEW_BUTTON)) @include('shared.modals._multi_select_modal', ['title' => 'Invite Client to Review', 'type' => \App\Http\Controllers\BusinessTicketController::INVITE_CLIENT_MODAL, 'list' => $business_users]) @endif @endif @if ($campaign_deliverable->uses_builder) @endif @include('shared.modals._feedback_modal', ['title' => 'Add Feedback']) @endsection @section('page_script') @if ($campaign_deliverable->type == \App\Models\Campaign_Deliverable::DELIVERABLE_TYPE_EMAIL) @include('shared_script._send_email_script') @if(\Gate::allows(\App\Providers\AuthServiceProvider::GATE_CAN_SEE_INVITE_CLIENT_TO_REVIEW_BUTTON)) @include('shared_script._multi_select_checkbox_script') @include('shared_script.modals._multi_select_modal_script') @include('shared_script._send_invitation_emails_script', ['send_invite_url' => action('CampaignDeliverableController@invite_to_client_review', compact('business', 'campaign_deliverable')), 'messages_container' => 'review-invite-messages', 'scroll_to_top' => true]) @endif @endif @include('reach.campaign_event.content_block._review_script') @endsection @section('page_style') @include('reach.campaign_event.content_block._review_style') @if ($campaign_deliverable->type == \App\Models\Campaign_Deliverable::DELIVERABLE_TYPE_EMAIL) @include('shared_style._multi_select_checkbox_style') @include('shared_style.modals._multi_select_modal_style') @endif @endsection