@extends('front.frontmaster')

@section('content')

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


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


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