@extends("admin.layouts.app") @section("styles") @endsection @section("content")
ارسال نموذج
@if ($errors->any()) @foreach ($errors->all() as $error) @endforeach @endif {{ Form::open(['route' => "admin.bulk-sms", 'role' => "form"]) }}
{!! Form::select("send_to",['ALL_CUSTOMER'=>"جميع الزبائن",'CUSTOMER'=>"اختيار زبون","GROUP"=>'اختيار مجموعة',"FREE_CUSTOMER"=>'مخصص'],null,['class'=>"form-control form-control m-input form-md-floating-label" ,"id"=>"send_to",'placeholder'=>'تحديد المرسل اليه'])!!}
{!! Form::select( 'message_id', $messageTemplates->where('status',true)->pluck('title', 'id')->toArray(), // Creates options with 'id' as keys and 'title' as values null, [ 'class' => 'form-control', 'id' => 'message_id', 'required' => true, 'placeholder' => 'اختر نموذج للارسال', ] ) !!}
{!! Form::select("provider",config('ihouse.sms_provider'),null,['class'=>"form-control form-control m-input form-md-floating-label" ,"id"=>"provider",'placeholder'=>'اختر مزود الخدمه'])!!}
{!! Form::close() !!}
@if(session()->has('smsLog')) @php $log = \App\Models\SmsLog::query()->find(session('smsLog')->id); // dd($log->total_customers,session('smsLog')->id,$log) @endphp
SMS Sending Is Processing
Bulk SMS request received and will be processed shortly. the log be founded after processed: all record
follow the link and refresh after 2 minute

show logs status....! @endif
@endsection @section("scripts") @endsection