after action reports
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
<!-- Mining Tax Items -->
|
||||
@include('layouts.user.sidebarmenu.miningtax')
|
||||
<!-- End Mining Tax Items -->
|
||||
<!-- After Action Reports -->
|
||||
@if(auth()->user()->hasPermission('fc.team'))
|
||||
@include('layouts.user.sidebarmenu.reports')
|
||||
@endif
|
||||
<!-- End After Action Reports -->
|
||||
<!-- SRP Items -->
|
||||
@include('layouts.user.sidebarmenu.srp')
|
||||
<!-- SRP Items -->
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<li class="nav-item has-treeview">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-cubes"></i>
|
||||
<p>After Action Reports<br>
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="/reports/display/all" class="nav-link">
|
||||
<i class="fas fa-cog nav-icon"></i>
|
||||
<p>Display Reports</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="/reports/display/report/form" class="nav-link">
|
||||
<i class="fas fa-cog nav-icon"></i>
|
||||
<p>Report Form</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1,14 +1,42 @@
|
||||
@extends('layouts.user.dashb4')
|
||||
@section('content')
|
||||
<br>
|
||||
if($reports != null)
|
||||
@foreach($reports as $report)
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
|
||||
<!-- Body of report goes here -->
|
||||
FC: {{ $report->fc_name }}<br>
|
||||
Formup: {{ $report->formup_location }}@{{ $report->formup_time }}<br>
|
||||
Comms: {{ $report->comms }}<br>
|
||||
Doctrine: {{ $report->doctrine }}<br>
|
||||
Objective: {{ $report->objective }}<br>
|
||||
Fleet Result: {{ $report->objective_result }}<br>
|
||||
Summary: {{ $report->summary }}<br>
|
||||
Improvements: {{ $report->improvements }}<br>
|
||||
Worked Well: {{ $report->worked_well }}<br>
|
||||
Additional Comments: {{ $report->additional_comments }}<br>
|
||||
<a class="btn btn-outline-dark" href="/reports/display/comment/form/{{$report->id}}" role="button">Click to Comment</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
@foreach($comments as $comment)
|
||||
@if($comment->report_id == $report->id)
|
||||
Name: {{$comment->character_name }}<br>
|
||||
Comments: {{ $comment->comments }}<br>
|
||||
<br>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Heads Be Rolling Soon</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
No fc's have submitted reports recently.
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
@@ -0,0 +1,21 @@
|
||||
@extends('layouts.user.dashb4')
|
||||
@section('content')
|
||||
<br>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h2>Add New Comment for After Action Report</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['action' => 'AfterActionReports\AfterActionReportsController@StoreComment', 'method' => 'POST']) !!}
|
||||
{{ Form::hidden('reportId', $id) }}
|
||||
<div class="form-group">
|
||||
{{ Form::label('comments', 'Comments') }}
|
||||
{{ Form::textarea('comments', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user