@extends('layouts.app') @section('title', __('crm::lang.campaigns')) @section('content') @include('crm::layouts.nav') @lang('crm::lang.campaigns') @lang('lang_v1.create') {!! Form::open(['url' => action([\Modules\Crm\Http\Controllers\CampaignController::class, 'store']), 'method' => 'post', 'id' => 'campaign_form' ]) !!} {!! Form::label('name', __('crm::lang.campaign_name') . ':*' )!!} {!! Form::text('name', null, ['class' => 'form-control', 'required' ]) !!} {!! Form::label('campaign_type', __('crm::lang.campaign_type') .':*') !!} {!! Form::select('campaign_type', ['sms' => __('crm::lang.sms'), 'email' => __('business.email')], 'email', ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required', 'style' => 'width: 100%;']); !!} @if(!empty($contact_ids)) @php $default_value = explode(',', $contact_ids); $to = 'contact'; @endphp @else @php $default_value = null; $to = null; @endphp @endif {!! Form::label('to', __('crm::lang.to').':*') !!} {!! Form::select('to', ['customer' => __('lang_v1.customers'), 'lead' => __('crm::lang.leads'), 'transaction_activity' => __('crm::lang.transaction_activity'), 'contact' => __('contact.contact')], $to, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required', 'style' => 'width: 100%;']); !!} {!! Form::label('contact_id', __('lang_v1.customers') .':*') !!} @lang('lang_v1.select_all') @lang('lang_v1.deselect_all') {!! Form::select('contact_id[]', $customers, null, ['class' => 'form-control select2', 'multiple', 'id' => 'contact_id', 'style' => 'width: 100%;']); !!} {!! Form::label('lead_id', __('crm::lang.leads') .':*') !!} @lang('lang_v1.select_all') @lang('lang_v1.deselect_all') {!! Form::select('lead_id[]', $leads, null, ['class' => 'form-control select2', 'multiple', 'id' => 'lead_id', 'style' => 'width: 100%;']); !!} {!! Form::label('contact', __('contact.contact') .':*') !!} @lang('lang_v1.select_all') @lang('lang_v1.deselect_all') {!! Form::select('contact[]', $contacts, $default_value, ['class' => 'form-control select2', 'multiple', 'id' => 'contact', 'style' => 'width: 100%;']); !!} {!! Form::label('trans_activity', __('crm::lang.transaction_activity').':*') !!} {!! Form::select('trans_activity', ['has_transactions' => __('crm::lang.has_transactions'), 'has_no_transactions' => __('crm::lang.has_no_transactions')], null, ['class' => 'form-control select2', 'required', 'style' => 'width: 100%;']); !!} {{__('crm::lang.in_days')}}:* {{__('crm::lang.in')}} {{__('lang_v1.days')}} {!! Form::label('subject', __('crm::lang.subject') . ':*' )!!} {!! Form::text('subject', null, ['class' => 'form-control', 'required' ]) !!} {!! Form::label('email_body', __('crm::lang.email_body') . ':*') !!} {!! Form::textarea('email_body', null, ['class' => 'form-control ', 'id' => 'email_body', 'required']); !!} {!! Form::label('sms_body', __('crm::lang.sms_body') . ':') !!} {!! Form::textarea('sms_body', null, ['class' => 'form-control ', 'id' => 'sms_body', 'rows' => '6', 'required']); !!} @lang('lang_v1.available_tags'): {{implode(', ', $tags)}} @lang('sale.draft') @lang('crm::lang.send_notification') {!! Form::close() !!} @stop @section('javascript') @endsection
{{implode(', ', $tags)}}