# Story 7.3: My Cases/Timelines View (Dashboard Integration)
## Epic Reference
**Epic 7:** Client Dashboard
## User Story
As a **client**,
I want **to access my case timelines from the dashboard navigation**,
So that **I can easily track the progress of my legal matters from one central location**.
## Story Context
### Relationship to Story 4.5
Story 4.5 (`docs/stories/story-4.5-client-timeline-view.md`) already implements the **complete timeline viewing functionality**:
- Routes: `client.timelines.index` and `client.timelines.show`
- Components: `pages/client/timelines/index.blade.php` and `show.blade.php`
- Active/archived separation with visual distinction
- Individual timeline detail view with chronological updates
- Authorization, tests, and translations
**This story (7.3) focuses solely on dashboard navigation integration** - ensuring clients can access the existing timeline views from the Epic 7 client dashboard structure.
### Prerequisites
- **Story 4.5:** Client Timeline View - MUST be complete (provides all timeline components)
- **Story 7.1:** Client Dashboard Overview - MUST be complete (provides dashboard layout and navigation)
### What This Story Does NOT Do
- Does NOT recreate timeline list or detail views (use Story 4.5's components)
- Does NOT add new timeline functionality
- Does NOT modify existing timeline components
## Acceptance Criteria
### Navigation Integration
- [ ] "My Cases" navigation item added to client dashboard sidebar/nav
- [ ] Navigation links to `route('client.timelines.index')`
- [ ] Active state shown when on timeline routes
- [ ] Icon: folder or briefcase icon for cases
### Dashboard Widget (on Story 7.1's dashboard)
- [ ] "My Cases" widget card displays:
- Count of active cases
- Latest update preview (case name + date)
- "View All" link to timeline index
- [ ] Widget shows empty state if no cases exist
### Layout Consistency
- [ ] Timeline pages use client dashboard layout (consistent header/nav)
- [ ] Breadcrumbs: Dashboard > My Cases (on index)
- [ ] Breadcrumbs: Dashboard > My Cases > [Case Name] (on show)
### Bilingual Support
- [ ] Navigation label translated (AR/EN)
- [ ] Widget content translated (AR/EN)
## Technical Notes
### File Structure
```
Files to Modify:
resources/views/components/layouts/client.blade.php (add nav item)
OR resources/views/livewire/pages/client/dashboard.blade.php (add widget)
Files from Story 4.5 (DO NOT MODIFY - just ensure they exist):
resources/views/livewire/pages/client/timelines/index.blade.php
resources/views/livewire/pages/client/timelines/show.blade.php
Tests to Create:
tests/Feature/Client/DashboardTimelineIntegrationTest.php
```
### Navigation Item Addition
Add to client dashboard navigation (location depends on Story 7.1's implementation):
```php
{{-- In client layout/navigation component --}}
{{ $latestTimelineUpdate->timeline->case_name }}
{{ __('client.last_update') }}: {{ $latestTimelineUpdate->created_at->diffForHumans() }}
{{ __('client.no_cases_yet') }}
@endif