{{-- resources/views/workspace/notes/index.blade.php --}} @extends('workspace.layouts.workspace') @section('title', 'My Notes') @section('page-title', 'My Notes') @section('ws-content')
{{-- Create note panel --}}

New Note

@csrf
@foreach(['yellow'=>'#fef08a','blue'=>'#93c5fd','green'=>'#86efac','pink'=>'#f9a8d4','purple'=>'#d8b4fe'] as $color=>$hex) @endforeach
{{-- Notes grid --}}
@if($notes->count())
@foreach($notes as $note)
@if($note->pinned) 📌 @endif

{{ $note->title }}

@if($note->body)

{{ strip_tags($note->body) }}

@endif
{{ $note->updated_at->diffForHumans() }}
{{-- Pin toggle --}}
@csrf @method('PUT')
@csrf @method('DELETE')
@endforeach
@else

No notes yet

Create your first note using the panel on the left.

@endif
@push('ws-scripts') @endpush @endsection