/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $poas = PowerofAttorney::latest()->get(); return view('admin.powerofattorney.index')->with('poas', $poas); }
@extends('front.frontmaster') @section('content') <?php use App\PowerofAttorney; $poas = PowerofAttorney::latest()->get(); ?> @foreach($poas as $poa ) <h2>{{$poa->title}}</h2> <p>{!!$poa->details!!}</p> @endforeach @endsection