@extends('Admin.master_page')
@extends('Admin.master_page')



@section('title') <h5 class="m-0 font-weight-bold text-primary" style="float: left;">Scheduled Maintenance Details</h5> 

<a href="{{ route('ScheduledMain.index') }}" style="float: right;"><i class="fas fa-chevron-circle-left"></i></a>
@endsection

@section('content')

@if(Session::has('success_message'))
<div class="alert alert-success">{{ Session::get('success_message') }}</div>
@endif

<div class="table-responsive"> 

 	<br>
 	<table class="table">
 	 <thead>
 	  <tr>
 	    <th>Date</th>
 	    <th>Message</th>
 	    <th>Action</th>
 	       </tr>
 	        </thead> 
 	        <tbody>
 	        @foreach($messages as $message)		
 	         <tr>
 	          <td>{{ $message->date }}</td>
 	          <td>{!! html_entity_decode($message->message) !!}</td>
 	            
 	             <td>
			
	

                    <a href="{{ route('ScheduleMessage.delete' , $message->id) }}" ><i class="fas fa-trash-alt" style="color:red;"></i></a>

        
   
 	             </td> 
 	            
 	         </tr>
 	         @endforeach


 	                 </tbody> 
 	             </table> 

 	             

 	         </div> 



@endsection