@extends('layouts.master')
@section('page_title', "Campaign Workflow")
@section('content')
{{ Form::page_header("Campaign Workflow", "business") }}
{{ Form::open(['url' => action('BusinessTicketController@do_campaign_event_action', compact('business_ticket'))]) }}
{!! \App\Models\Business_Ticket_Campaign_Event::$btce_ticket_type_instructions[$business_ticket->campaign_event_type] !!}
{{ Form::close() }}
@include('search._search_grid_wrapper', compact('column_set'))
@if ($business_ticket->can_assign_writer())
@include('shared._assign_user', ['title'=>'Assign Writer', 'users'=> \App\Helpers\FormDataHelper::request_writers(), 'type' => 'writer'])
@endif
@if ($business_ticket->can_assign_editor())
@include('shared._assign_user', ['title'=>'Assign Editor', 'users'=> \App\Helpers\FormDataHelper::request_editors(), 'type' => 'editor'])
@endif
@if ($business_ticket->can_invite_client_to_review())
@include('shared.modals._multi_select_modal', ['title' => 'Invite Client to Review',
'type' => \App\Http\Controllers\BusinessTicketController::INVITE_CLIENT_MODAL, 'list' => $business_users])
@endif
@endsection
@section('page_script')
@include('shared_script._dynamic_search_columns')
@include('shared_script._multi_select_checkbox_script')
@if ($business_ticket->can_assign_editor() || $business_ticket->can_assign_writer())
@include('shared_script._assign_user_script')
@endif
@if ($business_ticket->can_invite_client_to_review())
@include('shared_script.modals._multi_select_modal_script')
@include('shared_script._send_invitation_emails_script',
['send_invite_url' => action('BusinessTicketController@invite_client_to_review', compact('business_ticket')),
'messages_container' => 'ticket-buddy-messages'])
@endif
@endsection
@section('page_style')
@include('shared_style._grid_sort_style')
@include('shared_style._multi_select_checkbox_style')
@if ($business_ticket->can_invite_client_to_review())
@include('shared_style.modals._multi_select_modal_style')
@endif
@endsection