 @extends('admin.layouts.main-layout')
 @section('content')
   <div class="container">
        <div class="justify-content-center">
            <div class="">
                <div class="card">
                    <div class="card-header">Create Notification</div>
                    <div class="card-body">
                        @if ($errors->any())
                            <div class="alert alert-danger">
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
                         <form role="form" method="post" onsubmit="return validateForm('addsstatus')" class="addsstatus" action="{{url('admin/broadcast')}}" autocomplete="off" enctype="multipart/form-data">
                             @csrf
                       
<div class="form-group">
                                <label for="title">Title <span class="require label-mandatory">*</span></label>
                                <input type="text" class="form-control input-mandatory"
                                       name="title" id="name"  placeholder="">
                            </div>
                           
                            <div class="form-group">
                                <label for="title">Description <span class="require label-mandatory">*</span></label>
                                <textarea  class="form-control input-mandatory"
                                       name="description" id="name"  placeholder=""></textarea>
                            </div>
                            
                            <div class="col-md-4 mb-3">
                                <label><strong>User</strong></label>
                                <select name="user_id" class="form-control select2">
                                    <option value="all">All User</option>
            
                                    @foreach(userList() as $game)
                                        <option value="{{ $game->id }}" {{request('user_id') == $game->id ? 'selected' :'' }}>
                                            {{ $game->name }} ({{$game->mobile_number}})
                                        </option>
                                    @endforeach
                                </select>
                            </div>
                          
                            <br>
                            <div class="form-group">

                                <button type="submit"  class="btn btn-primary" >Submit</button>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection