removed the flex structure stuff from menus and programming
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
@extends('layouts.admin.b4')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>New Flex Structure Registration</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{ Form::open(['action' => 'Flex\FlexAdminController@addFlexStructure', 'method' => 'POST']) }}
|
||||
<div class="form-group">
|
||||
{{ Form::label('requestor_name', 'Character Name') }}
|
||||
{{ Form::text('requestor_name', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('requestor_corp_name', 'Corporation Name') }}
|
||||
{{ Form::text('requestor_corp_name', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('system', 'System') }}
|
||||
{{ Form::text('system', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('structure_type', 'Structure Type') }}
|
||||
{{ Form::select('structure_type', [
|
||||
'Cyno Jammer' => 'Cyno Jammer',
|
||||
'Cyno Beacon' => 'Cyno Beacon',
|
||||
'Jump Bridge' => 'Jump Bridge',
|
||||
'Super Construction Facilities' => 'Super Construction Facilities',
|
||||
'Market' => 'Market',
|
||||
], 'None', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('structure_cost', 'Structure Cost') }}
|
||||
{{ Form::text('structure_cost', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -1,58 +0,0 @@
|
||||
@extends('layouts.admin.b4')
|
||||
@section('content')
|
||||
<br>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Flex Structures</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<th>Requestor</th>
|
||||
<th>Corp</th>
|
||||
<th>System</th>
|
||||
<th>Structure Type</th>
|
||||
<th>Cost</th>
|
||||
<th>Paid Until</th>
|
||||
<th>Update</th>
|
||||
<th>Remove?</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($structures as $structure)
|
||||
<tr>
|
||||
<td>{{ $structure->requestor_name }}</td>
|
||||
<td>{{ $structure->requestor_corp_name }}</td>
|
||||
<td>{{ $structure->system }}</td>
|
||||
<td>{{ $structure->structure_type }}</td>
|
||||
<td>{{ number_format($structure->structure_cost, "2", ".", ",") }}</td>
|
||||
<td>
|
||||
{{ $structure->paid_until }}
|
||||
</td>
|
||||
<td>
|
||||
{!! Form::open(['action' => 'Flex\FlexAdminController@updateFlexStructure', 'method' => 'POST']) !!}
|
||||
{{ Form::date('paid_until', \Carbon\Carbon::now()->endOfMonth(), ['class' => 'form-control']) }}
|
||||
{{ Form::hidden('requestor_id', $structure->requestor_id) }}
|
||||
{{ Form::hidden('requestor_corp_id', $structure->requestor_corp_id) }}
|
||||
{{ Form::hidden('system_id', $structure->system_id) }}
|
||||
{{ Form::hidden('structure_type', $structure->structure_type) }}
|
||||
{{ Form::submit('Update', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
<td>
|
||||
{!! Form::open(['action' => 'Flex\FlexAdminController@removeFlexStructure', 'method' => 'POST']) !!}
|
||||
{{ Form::hidden('structure_type', $structure->structure_type) }}
|
||||
{{ Form::hidden('requestor_id', $structure->requestor_id) }}
|
||||
{{ Form::hidden('requestor_corp_id', $structure->requestor_corp_id) }}
|
||||
{{ Form::hidden('system_id', $structure->system_id) }}
|
||||
{{ Form::submit('Remove', ['class' => 'btn btn-danger']) }}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -20,9 +20,6 @@
|
||||
<!-- General Administrative Stuff -->
|
||||
@include('layouts.admin.sidebarmenu.general')
|
||||
<!-- End General Administrative Stuff -->
|
||||
<!-- Flex Structure -->
|
||||
@include('layouts.admin.sidebarmenu.flex')
|
||||
<!-- End Flex Structure -->
|
||||
<!-- Moon Admin -->
|
||||
@include('layouts.admin.sidebarmenu.moon')
|
||||
<!-- End Moon Admin -->
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
<!-- Flex Structure -->
|
||||
@if(auth()->user()->hasRole('Admin'))
|
||||
<li class="nav-item has-treeview">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>
|
||||
Flex Structures<br>
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="/flex/display" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>Display</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="/flex/display/add" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>Add</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
<!-- End Flex Structure -->
|
||||
Reference in New Issue
Block a user