?> @endforeach </ul> {!! Form::model($application, array('method' => 'POST', 'files'=>true, 'class'=>'main-form', 'action' => array('\Bootleg\Cms\ApplicationController@anyUpdate'))) !!} <div class='tab-content'> @foreach($application_settings as $key=>$section) <?php //we need to group this correctly.. I think there is a bug in Laravel that prevents //nested groups working correctly. TODO: Probably look at this again later $fields = ""; $model = new Baum\Extensions\Eloquent\Collection(); if (count($section) > 1) { foreach ($section as $flds) { $model->push($flds); } $fields = $model->groupBy('name'); } ?> <div class="tab-pane fade {{!@$j?'active in':''}} edit-content-tab" id="tab-{{$key?$key:"Settings"}}"> <ul> @if(!@$j) <li class="form-group"> {!! Form::label('name', 'Name:') !!} {!! Form::text('name', null, array('class'=>'form-control')) !!} </li> <?php $j = true; ?> @endif <li class="form-group"> <?php