diff --git a/resources/views/clients/index.blade.php b/resources/views/clients/index.blade.php index d0373d7..08da80c 100644 --- a/resources/views/clients/index.blade.php +++ b/resources/views/clients/index.blade.php @@ -1,187 +1,189 @@ @extends('layouts.app') @section('title', 'Clients') -@section('page-title', 'Clients / CRM πŸ‘₯') +@section('page-title', 'ClientsπŸ‘₯') @section('page-subtitle', 'Manage your brand partners and contacts') @section('content') -{{-- ── Toolbar + collapsible filter ───────────────────────── --}} -
+ {{-- ── Toolbar + collapsible filter ───────────────────────── --}} +
-
-
- οΌ‹ Add - @if(request('category') || request('status')) - - βœ• Clear filters - - @endif -
- -
- -{{-- ── Filters panel (collapsible) ────────────────────────── --}} -
-
- {{-- Row 1: search + dropdowns --}} -
- {{-- Search (fills remaining space on desktop) --}} -
- πŸ” - +
+
+ οΌ‹ Add + @if(request('category') || request('status')) + + βœ• Clear filters + + @endif +
+
- {{-- Category dropdown --}} - - - {{-- Status dropdown --}} - -
- - -
-
{{-- end x-data --}} - -{{-- ── Client grid ─────────────────────────────────────────── --}} -
- @forelse($clients as $client) -
- -
- @if($client->avatar) -
- {{ $client->name }} + {{-- ── Filters panel (collapsible) ────────────────────────── --}} +
+
+ {{-- Row 1: search + dropdowns --}} +
+ {{-- Search (fills remaining space on desktop) --}} +
+ πŸ” +
- @else -
- {{ $client->initials }} -
- @endif -
-
-

{{ $client->name }}

- - {{ $client->status->label() }} - -
- @if($client->company) -
{{ $client->company }}
- @endif - @if($client->category) -
- {{ $client->category->icon }} {{ $client->category->name }} - @if($client->category->parent) - Β· - {{ $client->category->parent->name }} - @endif + + {{-- Category dropdown --}} + + + {{-- Status dropdown --}} + +
+ + +
+
{{-- end x-data --}} + + {{-- ── Client grid ─────────────────────────────────────────── --}} +
+ @forelse($clients as $client) +
+ +
+ @if($client->avatar) +
+ {{ $client->name }} +
+ @else +
+ {{ $client->initials }}
@endif +
+
+

{{ $client->name }}

+ + {{ $client->status->label() }} + +
+ @if($client->company) +
{{ $client->company }}
+ @endif + @if($client->category) +
+ {{ $client->category->icon }} {{ $client->category->name }} + @if($client->category->parent) + Β· + {{ $client->category->parent->name }} + @endif +
+ @endif +
+
+ +
+ @if($client->ig_handle) + πŸ“Έ {{ $client->ig_handle }} + @endif + @if($client->tiktok_handle) + 🎡 + {{ $client->tiktok_handle }} + @endif + @if($client->youtube_handle) + ▢️ + {{ $client->youtube_handle }} + @endif +
+ +
+ πŸ“… {{ $client->events_count }} + 🧾 {{ $client->invoices_count }} + 🎬 {{ $client->content_briefs_count }} +
+ + @if($client->email || $client->city) +
+ @if($client->email) +
βœ‰οΈ {{ $client->email }}
@endif + @if($client->city) +
πŸ“ {{ $client->city }}{{ $client->country ? ', ' . $client->country : '' }}
@endif +
+ @endif + +
+ View + + Edit + + {{-- Share button disabled --}} +
+ @csrf @method('DELETE') + +
- -
- @if($client->ig_handle) - πŸ“Έ {{ $client->ig_handle }} - @endif - @if($client->tiktok_handle) - 🎡 {{ $client->tiktok_handle }} - @endif - @if($client->youtube_handle) - ▢️ {{ $client->youtube_handle }} + @empty +
+ 🐱 +

No clients found!

+ @if(request('category') || request('status')) + Clear filters + @else + Add your first client @endif
+ @endforelse +
-
- πŸ“… {{ $client->events_count }} - 🧾 {{ $client->invoices_count }} - 🎬 {{ $client->content_briefs_count }} -
+ {{ $clients->links() }} - @if($client->email || $client->city) -
- @if($client->email)
βœ‰οΈ {{ $client->email }}
@endif - @if($client->city)
πŸ“ {{ $client->city }}{{ $client->country ? ', '.$client->country : '' }}
@endif -
- @endif - -
- View - - Edit - - {{-- Share button disabled --}} -
- @csrf @method('DELETE') - -
-
-
- @empty -
- 🐱 -

No clients found!

- @if(request('category') || request('status')) - Clear filters - @else - Add your first client - @endif -
- @endforelse -
- -{{ $clients->links() }} - -@push('scripts') - -@endpush -@endsection + @push('scripts') + + @endpush +@endsection \ No newline at end of file diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index b5bbf22..1301aa3 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -62,7 +62,7 @@ - πŸ‘₯ Clients / CRM + πŸ‘₯ Clients filter(fn($e) => $e->start_time->isFuture() && $e->start_time->diffInHours(now()) <= 24); + $startOfMonth = now()->startOfMonth(); + $endOfMonth = now()->endOfMonth(); + $upcomingList = $events->filter(function($e) use ($startOfMonth, $endOfMonth) { + $start = $e->start_time; + $end = $e->end_time ?: $e->start_time; + return $start->lte($endOfMonth) && $end->gte($startOfMonth); + }); @endphp @if($upcomingList->isNotEmpty())
- @foreach($upcomingList->take(6) as $event) + @foreach($upcomingList as $event)