@extends('front.frontmaster')

@section('content')

<?php 
use App\PublicHoliday;
$hols = PublicHoliday::latest()->get();
?>


 @foreach($hols as $hol )
<h2>{{$hol->title}}</h2>
<p>{!!$hol->details!!}</p>


 	      @endforeach
 @endsection
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $hols = PublicHoliday::findorFail($id);
     $hols->delete();
     return redirect('admin/holiday');
 }