rest of moon controller functions
This commit is contained in:
@@ -4,26 +4,20 @@
|
||||
<a class="navbar-brand" href="#">W4RP</a>
|
||||
</div>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dashboard/profile">Profile</a>
|
||||
</li>
|
||||
@can('isAdmin')
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dashboard/finances">Finances</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dashboard/moons">Display Moons</a>
|
||||
<a class="nav-link" href="/moons/display">Display Moons</a>
|
||||
</li>
|
||||
@can('isAdmin')
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dashboard/addmoon">Add Moon</a>
|
||||
<a class="nav-link" href="/moons/addmoon">Add Moon</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dashboard/updatemoon">Update Moon</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/dashboard/moonmine">Moon Mining</a>
|
||||
<a class="nav-link" href="/moons/updatemoon">Update Moon</a>
|
||||
</li>
|
||||
@endcan
|
||||
<li class="nav-item">
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@extends('layouts.b4')
|
||||
@include('inc.messages')
|
||||
@include('layouts.navbar')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
@extends('layouts.b4')
|
||||
@include('layouts.navbar')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="jumbotron">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Region</th>
|
||||
<th>System</th>
|
||||
<th>Name</th>
|
||||
<th>First Ore</th>
|
||||
<th>Quantity</th>
|
||||
<th>Second Ore</th>
|
||||
<th>Quantity</th>
|
||||
<th>Third Ore</th>
|
||||
<th>Quantity</th>
|
||||
<th>Fourth Ore</th>
|
||||
<th>Quantity</th>
|
||||
<th>Rental Price</th>
|
||||
<th>Renter</th>
|
||||
<th>Rental End</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($moons as $moon)
|
||||
<tr>
|
||||
<td>{{ $moon->region }}</td>
|
||||
<td>{{ $moon->system }}</td>
|
||||
<td>{{ $moon->structure }}</td>
|
||||
<td>{{ $moon->firstore }}</td>
|
||||
<td>{{ $moon->firstquan }}</td>
|
||||
<td>{{ $moon->secondore }}</td>
|
||||
<td>{{ $moon->secondquan }}</td>
|
||||
<td>{{ $moon->thirdore }}</td>
|
||||
<td>{{ $moon->thirdquan }}</td>
|
||||
<td>{{ $moon->fourthore }}</td>
|
||||
<td>{{ $moon->price }}</td>
|
||||
<td>{{ $moon->renter }}</td>
|
||||
<td>{{ $moon->rentend }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,18 @@
|
||||
@extends('layouts.b4')
|
||||
@include('layouts.navbar')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<h2>Update Existing Moon</h2>
|
||||
{!! Form::open(['action' => 'MoonsController@storeUpdateMoon', 'method' => 'POST']) !!}
|
||||
<div class="form-group col-md-6">
|
||||
{{ Form::label('name', 'Structure Name') }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control', 'placeholder' => 'Name']) }}
|
||||
{{ Form::label('renter', 'Renter') }}
|
||||
{{ Form::text('renter', '', ['class' => 'form-control', 'placeholder' => 'Renter']) }}
|
||||
{{ Form::label('date', 'Rental End Date') }}
|
||||
{{ Form::text('date', '', ['class' => 'form-control', 'placeholder' => '01/01/1970'] )}}
|
||||
</div>
|
||||
{{ Form:;submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user