@extends('layout.master') @section('content')

All Notes

@can('note create') @endcan
@if(Auth::user()->user_type == 'admin')
@csrf

Use 24-hour format

@endif
@forelse ($notes as $key => $note) @empty @endforelse
ID User Name Date Action
{{ $note->id }} {{ $note->user->fname ?? Null }} {{ $note->user->lname ?? Null }} {{ $note->created_at }}
@can('note delete')
@csrf @method('DELETE')
@endcan @can('note edit') @if($note->expireNote == 0 || Auth::user()->user_type == 'admin')
@endif @endcan @can('note expirelock') @if($note->expireNote == 1) @endif @endcan
@if( isset($note) && $note instanceof \Illuminate\Pagination\LengthAwarePaginator && $note->count() > 0 ) {{ $note->links() }} @else @endif
@endsection @push('scripts') @endpush