-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
168 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
@extends('layouts.app') | ||
|
||
@section('title', 'Feedback') | ||
@section('content') | ||
|
||
<div class="row"> | ||
<div class="col-xl-6 col-lg-12 col-md-12 mb-12"> | ||
<div class="card shadow mb-4"> | ||
<div class="card-header bg-primary py-3 d-flex flex-row align-items-center justify-content-between"> | ||
<h6 class="m-0 fw-bold text-white"> | ||
Submit Feedback | ||
</h6> | ||
</div> | ||
<div class="card-body"> | ||
<form action="{!! action('FeedbackController@store') !!}" method="POST"> | ||
@csrf | ||
|
||
<div class="row mb-4"> | ||
<div class="col-md-4"> | ||
<label class="form-label">VATSIM ID</label> | ||
<input class="form-control" type="text" value="{{ Auth::user()->id }}" disabled> | ||
</div> | ||
|
||
<div class="col-md-4"> | ||
<label class="form-label">Your name</label> | ||
<input class="form-control" type="text" value="{{ Auth::user()->name }}" disabled> | ||
</div> | ||
|
||
<div class="col-md-4"> | ||
<label class="form-label">Your email</label> | ||
<input class="form-control" type="text" value="{{ Auth::user()->email }}" disabled> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<div class="col-md-6"> | ||
<label class="form-label" for="controllers">Controller</label> | ||
<input | ||
id="controllers" | ||
class="form-control" | ||
type="text" | ||
name="controller" | ||
list="controllersList" | ||
multiple="multiple" | ||
value="{{ old('controller') }}" | ||
> | ||
|
||
<datalist id="controllersList"> | ||
@foreach($controllers as $controller) | ||
@browser('isFirefox') | ||
<option>{{ $controller->id }}</option> | ||
@else | ||
<option value="{{ $controller->id }}">{{ $controller->name }}</option> | ||
@endbrowser | ||
@endforeach | ||
</datalist> | ||
@error('controller') | ||
<span class="text-danger">{{ $errors->first('controller') }}</span> | ||
@enderror | ||
</div> | ||
<div class="col-md-6"> | ||
<label class="form-label" for="positions">Controller's position</label> | ||
<input | ||
id="positions" | ||
class="form-control" | ||
type="text" | ||
name="position" | ||
list="positionsList" | ||
multiple="multiple" | ||
value="{{ old('position') }}" | ||
> | ||
|
||
<datalist id="positionsList"> | ||
@foreach($positions as $position) | ||
@browser('isFirefox') | ||
<option>{{ $position->callsign }}</option> | ||
@else | ||
<option value="{{ $position->callsign }}">{{ $position->name }}</option> | ||
@endbrowser | ||
@endforeach | ||
</datalist> | ||
@error('position') | ||
<span class="text-danger">{{ $errors->first('position') }}</span> | ||
@enderror | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<div class="col-md-12"> | ||
<label class="form-label">Your feedback</label> | ||
<textarea class="form-control" name="feedback" rows="5">{{ old('feedback') }}</textarea> | ||
@error('feedback') | ||
<span class="text-danger">{{ $errors->first('feedback') }}</span> | ||
@enderror | ||
</div> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-success">Submit Feedback</button> | ||
|
||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters