flex list blade
This commit is contained in:
@@ -33,8 +33,6 @@ class FlexAdminController extends Controller
|
|||||||
//Get the structures from the database
|
//Get the structures from the database
|
||||||
$structures = FlexStructure::all();
|
$structures = FlexStructure::all();
|
||||||
|
|
||||||
dd($structures);
|
|
||||||
|
|
||||||
return view('flex.list')->with('structures', $structures);
|
return view('flex.list')->with('structures', $structures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
<h2>Flex Structures</h2>
|
<h2>Flex Structures</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@if($structures != null)
|
|
||||||
{!! Form::open(['action' => 'Flex\FlexAdminController@removeFlexStructure', 'method' => 'POST']) !!}
|
{!! Form::open(['action' => 'Flex\FlexAdminController@removeFlexStructure', 'method' => 'POST']) !!}
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -38,9 +37,6 @@
|
|||||||
</table>
|
</table>
|
||||||
{{ Form::submit('Remove', ['class' => 'btn btn-danger']) }}
|
{{ Form::submit('Remove', ['class' => 'btn btn-danger']) }}
|
||||||
{!! Form::close() !!}
|
{!! Form::close() !!}
|
||||||
@else
|
|
||||||
<h3>No Flex Structures Registered</h3>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user