@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('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)}}

{!! Form::close() !!}
@stop @section('javascript') @endsection