@extends('layouts.admin') @section('content')
@if(count($future)>0)

Upcoming {{ucwords(str_replace('-',' ',$resource_configs['resourceName']))}}

@if($resource_configs['creatable']===true) Add {{str_singular(ucwords(str_replace('-',' ',$resource_configs['resourceName'])))}} @endif
@foreach($resource_configs['indexFields'] as $attribute) @endforeach @foreach($future as $resource) @foreach($resource_configs['indexFields'] as $attribute) @endforeach @endforeach
{{ucwords(str_replace('_',' ',$attribute))}} Actions
@if($attribute=='date') {{$resource->$attribute->format('n/j/Y')}} @else {{$resource->$attribute}} @endif @if($resource_configs['deletable']) {!!Form::open(['route'=>['admin.'.$resource_configs['resourceName'].'.destroy',$resource->id],'method'=>'DELETE'])!!} Edit {!!Form::close()!!} @else Edit @endif
@endif @if(count($past)>0)

Past Shows

@foreach($resource_configs['indexFields'] as $attribute) @endforeach @foreach($past as $resource) @foreach($resource_configs['indexFields'] as $attribute) @endforeach @endforeach
{{ucwords(str_replace('_',' ',$attribute))}} Actions
@if($attribute=='date') {{$resource->$attribute->format('n/j/Y')}} @else {{$resource->$attribute}} @endif @if($resource_configs['deletable']) {!!Form::open(['route'=>['admin.'.$resource_configs['resourceName'].'.destroy',$resource->id],'method'=>'DELETE'])!!} Edit {!!Form::close()!!} @else Edit @endif
@endif
@stop