@extends('front.frontmaster')

@section('content')

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


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


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