namespace
This commit is contained in:
@@ -78,8 +78,10 @@ class AfterActionReportsController extends Controller
|
||||
//Grab all the reports
|
||||
$reports = AfterActionReport::where('created_at', '>=', Carbon::now()->subDays(30));
|
||||
$comments = AfterActionReportComment::where('created_at', '>=', Carbon::now()->subDays(30));
|
||||
$reportCount = AfterActionReport::where('created_at', '>=', Carbon::now()->subDays(30))->count();
|
||||
|
||||
return view('reports.user.displayreports')->with('reports', $reports)
|
||||
->with('comments', $comments);
|
||||
->with('comments', $comments)
|
||||
->with('reportCount', $reportCount);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@extends('layouts.user.dashb4')
|
||||
@section('content')
|
||||
<br>
|
||||
@if($reports != null)
|
||||
@if($reportCount > 0)
|
||||
@foreach($reports as $report)
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
|
||||
Reference in New Issue
Block a user