@extends('admin.layout.main')
@section('content')
<div class="row">
    <div class="col-lg-12" style="padding-left: 4px;padding-right: 4px;">
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-header">
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">Send Message</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
            <form action="{{url('admin/msgreply')}}" method="post">@csrf  

	            <div class="col-md-4">
	                <select style="margin-bottom: 5px;height: 38px;" class="select2-single" id="username" name="username" required> 
	                    <option value="">Select Member</option>
	                    <option value="all"> All Members</option>
	                    @foreach($members as $mem)
	                    <option value="{{$mem->username}}">{{$mem->username}} ({{$mem->name}})</option>
	                    @endforeach
	                </select>
	            </div>                 	

		      	<div class="col-md-4">
		            <input style="margin-bottom: 5px;margin-top: 10px;height: 38px;" type="text" class="form-control" name="subject" placeholder="Enter Subject" required>
		      	</div>

		      	<div class="col-md-4">
		            <textarea rows="3" style="margin-bottom: 5px;margin-top: 10px;width: 100%;background: transparent;border: 1px solid #41b985;border-radius: 4px;padding-left: 10px;color: #fff;" placeholder="Enter Message Here..." name="msg" required></textarea>    
		      	</div>

		      	<div class="col-md-4">                    
		            <button style="height: 38px;background: #f85005;color: #fff;" type="submit" class="btn">Send Message</button> 
		        </div>
            </form>
           </div>
       </div>
   </div>
</div>
@endsection