@extends('layouts.master') @section('page_title', 'boomtime Mailbox Mining') @section('content')
{{ Form::page_header('Mailbox Integration', 'business') }}
{{ Form::open(['url' => $post_url]) }} @if($business_user_imap_setting->is_signed_up) {{ Form::row_label_inline('Email', $imap_setting_email, null, 2, 4) }} @else @if(!$user->first_name || !$user->last_name) {{ Form::row_text_inline('first_name', 'First Name', $user->first_name, 2, 4) }} {{ Form::row_text_inline('last_name', 'Last Name', $user->last_name, 2, 4) }} @endif {{ Form::hidden('imap_setting_email', $imap_setting_email) }} {{ Form::row_label_inline('Email', $imap_setting_email, null, 2, 4) }} {{ Form::row_text_inline('first_scrape_days', 'First Run Days', $business_user_imap_setting->first_scrape_days ?: 300, 2, 1) }} @endif
{{ Form::label_info('Frequency of Mining', 'Choose this based on how often you correspond with new prospects.', 2) }} {{ Form::radio_ex('run_frequency', \App\Models\Business_User_Imap_Setting::RUN_DAILY, $business_user_imap_setting->run_frequency, 'Run Daily', 2, null, 'run_daily') }} {{ Form::radio_ex('run_frequency', \App\Models\Business_User_Imap_Setting::RUN_WEEKLY, $business_user_imap_setting->run_frequency, 'Run Weekly', 2, null, 'run_weekly') }}
{{ Form::label_title('Run Weekly On:', \App\Helpers\FormComponentHelper::SIZE_SMALL, null, 2) }} @foreach(\App\Models\Business_User_Imap_Setting::$run_day_map as $value => $title) {{ Form::radio_ex('run_day', $value, $business_user_imap_setting->run_day, $title, 1) }} @endforeach
@if(isset($mailchimp_interests))
{{ Form::row_select_inline('mailchimp_interest_category_id', 'Pick your group or select “Create New” and we will create one', $business_user_imap_setting->mailchimp_interest_category_id, $mailchimp_interests, 2, 4, \App\Helpers\FormComponentHelper::SIZE_SMALL, null, 'Create New') }}
@endif
{{ Form::row_select_inline('reviewer', 'Reviewer', $business_user_imap_setting->reviewer, $reviewer_select, 2, 4, \App\Helpers\FormComponentHelper::SIZE_SMALL, null, 'Select') }}
{{ Form::row_select_inline('send_email_to', 'Send Email To', $business_user_imap_setting->send_email_to, \App\Models\Business_User_Imap_Setting::$send_email_to_map, 2, 4, \App\Helpers\FormComponentHelper::SIZE_SMALL) }}
@if($business_user_imap_setting->is_signed_up) {{ Form::button_save('Update') }} @if($business_user_imap_setting->needs_re_auth) {{ Form::button_link('Re-authenticate', action('ImapIntegrationController@nylas_re_auth', compact('business_user_imap_setting'))) }} @endif @else {{ Form::button_save('Signup') }} @endif @if($business_user_imap_setting->nylas_access_token && !$business_user_imap_setting->needs_re_auth && Gate::allows(\App\Providers\AuthServiceProvider::SUPER_PLUS_PLUS_ADMIN) && str_contains($business_user_imap_setting->imap_setting_email, '@boomtime.com')) {{ Form::button_ex('Scheduler', null, 'schedule-editor') }} @endif
{!! Form::close() !!}
@endsection @section('page_script') @include('shared_script._status_alert_notification_script') @if($business_user_imap_setting->nylas_access_token) @endif @endsection @section('page_style') @endsection