namespace

This commit is contained in:
2021-03-19 21:39:45 +09:00
parent a253bb1aaf
commit 2da297facd
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -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">