@extends('layouts.master') @section('content')

{{$pageTitle}}

Create

@foreach($headers as $header => $field) @endforeach @foreach($data as $item) @foreach($headers as $field) @if($field != 'action') @else @endif @endforeach @endforeach
{{ $header }}
{{ $item->$field }} View  Edit
@endsection