@if (session('success'))
@endif
Create New Medical Facts
@if ($recycleBin->isNotEmpty())
@php
$user = Auth::user();
$RecycleCount = App\Models\MedicalFacts::onlyTrashed()
->where('employee_id', $user->id)
->count();
@endphp
@endif
@php
$medicalColl = collect($medical);
$total = $medicalColl->count();
// counts as a Collection (key => count)
$bySeverity = $medicalColl->countBy('severity');
// Ensure keys exist
$mild = $bySeverity->get('Mild', 0);
$mod = $bySeverity->get('Moderate', 0);
$sev = $bySeverity->get('Severe', 0);
@endphp
{{-- statistics --}}
{{-- Recycle Bin --}}
| # |
Fact |
Severity |
Fact Type |
Last Updated |
Actions |
@foreach ($recycleBin as $recycledata)
| {{ $recycledata->id }} |
{{ $recycledata->fact }} |
{{ $recycledata->severity }} |
{{ $recycledata->facttype }} |
{{ date('d/m/Y H:i', strtotime($recycledata->updated_at)) }} |
|
@endforeach
@if (!empty($recycledata->id))
Are you sure you want to delete {{ $recycledata->fact }}?
@endif
{{-- Data --}}
| # |
Fact |
Severity |
Fact Type |
Last Updated |
Actions |
@foreach ($medical as $med)
| {{ $med->id }} |
{{ $med->fact }} |
{{ $med->severity }} |
{{ $med->facttype }} |
{{ date('d/m/Y H:i', strtotime($med->updated_at)) }} |
|
@if (!empty($med->id))
Are you sure you want to move
{{ $med->fact }} to the
recyle
bin?
@endif
@endforeach