display end of contract form
This commit is contained in:
@@ -24,6 +24,7 @@ class Bid extends Model
|
||||
'character_id',
|
||||
'corporation_name',
|
||||
'corporation_id',
|
||||
'notes',
|
||||
];
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
@@ -35,6 +35,7 @@ class CreateContractsTable extends Migration
|
||||
$table->string('character_id');
|
||||
$table->string('corporation_name');
|
||||
$table->string('corporation_id');
|
||||
$table->text('notes');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
@extends('layouts.b4')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<h2>Contract End</h2>
|
||||
</div>
|
||||
<br>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<!-- Card Header display Contract Information -->
|
||||
<div class="card-header">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Contract Id</th>
|
||||
<th>Contract Type</th>
|
||||
<th>Title</th>
|
||||
<th>End Date</th>
|
||||
<th>Description</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $contract['id'] }}</td>
|
||||
<td>{{ $contract['type'] }}</td>
|
||||
<td>{{ $contract['title'] }}</td>
|
||||
<td>{{ $contract['end_date'] }}</td>
|
||||
<td>{{ $contract['body'] }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Card Body displays all of the bids and allows for selection of which bid to accept -->
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Bid Amount</th>
|
||||
<th>Character Name</th>
|
||||
<th>Corporation Name</th>
|
||||
<th>Notes</th>
|
||||
<th>Accept?</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{!! Form::open(['action' => 'ContractAdminController@endContract', 'method' => 'POST']) !!}
|
||||
@foreach($bids as $bid)
|
||||
<tr>
|
||||
<td>{{ $bid['bid_amount'] }}</td>
|
||||
<td>{{ $bid['character_name'] }}</td>
|
||||
<td>{{ $bid['corporation_name'] }}</td>
|
||||
<td>{{ $bid['notes'] }}</td>
|
||||
<td>{{ Form::radio('accept', $bid['id'], false, ['class' => 'form-control']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -23,6 +23,8 @@
|
||||
{{ Form::radio('suffix', 'M', false) }}
|
||||
{{ Form::label('suffix', 'B') }}
|
||||
{{ Form::radio('suffix', 'B', false) }}
|
||||
{{ Form::label('notes', 'Notes') }}
|
||||
{{ Form::textarea('notes', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
|
||||
Reference in New Issue
Block a user