refactor: remove redundant dashboard widgets and clean up layout structure
This commit is contained in:
@@ -126,6 +126,7 @@ class EventController extends Controller
|
||||
'status' => ContentStatus::Drafting,
|
||||
'target_date' => $event->start_time->toDateString(),
|
||||
'notes' => $event->notes,
|
||||
'body' => $event->description,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,153 +6,154 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
{{-- ── Today's Schedule (TOP) ───────────────────────────────── --}}
|
||||
<div class="cat-card p-4 lg:p-6 mb-4">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<h2 class="text-sm lg:text-base font-bold text-gray-700 flex items-center gap-2">
|
||||
<span>📅</span> Today's Schedule
|
||||
</h2>
|
||||
<a href="{{ route('schedule.index') }}" class="text-xs text-pink-500 hover:underline font-medium">View all →</a>
|
||||
</div>
|
||||
{{-- ── Today's Schedule (TOP) ───────────────────────────────── --}}
|
||||
<div class="cat-card p-4 lg:p-6 mb-4">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<h2 class="text-sm lg:text-base font-bold text-gray-700 flex items-center gap-2">
|
||||
<span>📅</span> Today's Schedule
|
||||
</h2>
|
||||
<a href="{{ route('schedule.index') }}" class="text-xs text-pink-500 hover:underline font-medium">View all →</a>
|
||||
</div>
|
||||
|
||||
@forelse($todayActivities as $activity)
|
||||
<div class="flex items-start gap-3 py-3 border-b border-pink-50 last:border-0">
|
||||
<div class="w-1 h-10 rounded-full shrink-0 mt-0.5" style="background-color: {{ $activity['color'] }};"></div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<div class="flex items-center gap-1.5 flex-wrap">
|
||||
@if($activity['priority'])<span class="text-amber-400 text-xs">⭐</span>@endif
|
||||
<span class="text-base shrink-0">{{ $activity['icon'] }}</span>
|
||||
<span class="font-semibold text-gray-800 text-sm truncate">{{ $activity['title'] }}</span>
|
||||
<span class="text-xs px-2 py-0.5 rounded-full bg-pink-50 text-pink-600 shrink-0 capitalize">{{ $activity['label'] }}</span>
|
||||
@forelse($todayActivities as $activity)
|
||||
<div class="flex items-start gap-3 py-3 border-b border-pink-50 last:border-0">
|
||||
<div class="w-1 h-10 rounded-full shrink-0 mt-0.5" style="background-color: {{ $activity['color'] }};"></div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<div class="flex items-center gap-1.5 flex-wrap">
|
||||
@if($activity['priority'])<span class="text-amber-400 text-xs">⭐</span>@endif
|
||||
<span class="text-base shrink-0">{{ $activity['icon'] }}</span>
|
||||
<span class="font-semibold text-gray-800 text-sm truncate">{{ $activity['title'] }}</span>
|
||||
<span
|
||||
class="text-xs px-2 py-0.5 rounded-full bg-pink-50 text-pink-600 shrink-0 capitalize">{{ $activity['label'] }}</span>
|
||||
</div>
|
||||
<div class="text-xs text-gray-500 mt-0.5">{{ $activity['subtitle'] }}</div>
|
||||
</div>
|
||||
<div class="text-xs text-gray-500 mt-0.5">{{ $activity['subtitle'] }}</div>
|
||||
<span class="badge {{ $activity['badge_class'] }} shrink-0 text-xs">{{ $activity['badge'] }}</span>
|
||||
</div>
|
||||
<span class="badge {{ $activity['badge_class'] }} shrink-0 text-xs">{{ $activity['badge'] }}</span>
|
||||
</div>
|
||||
@empty
|
||||
<div class="text-center py-6 text-gray-400">
|
||||
<span class="text-4xl block mb-1">😸</span>
|
||||
<p class="text-sm">No activities today — enjoy your day!</p>
|
||||
<div class="flex gap-2 justify-center mt-3">
|
||||
<a href="{{ route('schedule.index') }}" class="text-xs text-pink-500 hover:underline">Add event</a>
|
||||
<span class="text-xs text-gray-300">·</span>
|
||||
<a href="{{ route('invoices.create') }}" class="text-xs text-pink-500 hover:underline">Create invoice</a>
|
||||
<span class="text-xs text-gray-300">·</span>
|
||||
<a href="{{ route('content.create') }}" class="text-xs text-pink-500 hover:underline">New brief</a>
|
||||
@empty
|
||||
<div class="text-center py-6 text-gray-400">
|
||||
<span class="text-4xl block mb-1">😸</span>
|
||||
<p class="text-sm">No activities today — enjoy your day!</p>
|
||||
<div class="flex gap-2 justify-center mt-3">
|
||||
<a href="{{ route('schedule.index') }}" class="text-xs text-pink-500 hover:underline">Add event</a>
|
||||
<span class="text-xs text-gray-300">·</span>
|
||||
<a href="{{ route('invoices.create') }}" class="text-xs text-pink-500 hover:underline">Create invoice</a>
|
||||
<span class="text-xs text-gray-300">·</span>
|
||||
<a href="{{ route('content.create') }}" class="text-xs text-pink-500 hover:underline">New brief</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
{{-- ── Stat Pills (BELOW schedule) ─────────────────────────── --}}
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3 mb-4">
|
||||
<a href="{{ route('clients.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl lg:text-3xl font-extrabold text-pink-500">{{ $stats['total_clients'] }}</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Total Clients</div>
|
||||
<div class="text-xs text-gray-400">{{ $stats['active_clients'] }} active</div>
|
||||
</a>
|
||||
<a href="{{ route('schedule.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl lg:text-3xl font-extrabold text-purple-500">{{ $stats['upcoming_events'] }}</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Upcoming Events</div>
|
||||
<div class="text-xs text-gray-400">Next 3 months</div>
|
||||
</a>
|
||||
<a href="{{ route('invoices.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl lg:text-3xl font-extrabold text-amber-500">{{ $stats['pending_invoices'] }}</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Pending Invoices</div>
|
||||
<div class="text-xs text-gray-400">Awaiting payment</div>
|
||||
</a>
|
||||
<div class="stat-pill">
|
||||
<div class="text-lg lg:text-2xl font-extrabold text-emerald-500 leading-tight">
|
||||
Rp {{ number_format($stats['total_revenue'], 0, ',', '.') }}
|
||||
</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Revenue (Paid)</div>
|
||||
<div class="text-xs text-gray-400">All time</div>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ── Secondary Stats ──────────────────────────────────────── --}}
|
||||
<div class="grid grid-cols-3 gap-3 mb-4">
|
||||
<a href="{{ route('client-categories.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl font-extrabold text-indigo-500">{{ $stats['total_categories'] }}</div>
|
||||
<div class="text-xs font-semibold text-gray-600">Categories</div>
|
||||
<div class="text-xs text-gray-400">{{ $stats['total_subcategories'] }} subcategories</div>
|
||||
</a>
|
||||
<a href="{{ route('contracts.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl font-extrabold text-rose-500">{{ $stats['active_contracts'] }}</div>
|
||||
<div class="text-xs font-semibold text-gray-600">Brand Contracts</div>
|
||||
<div class="text-xs text-gray-400">{{ $stats['total_contracts'] }} total</div>
|
||||
</a>
|
||||
<a href="{{ route('files.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl font-extrabold text-teal-500">{{ $stats['total_files'] }}</div>
|
||||
<div class="text-xs font-semibold text-gray-600">Files Saved</div>
|
||||
<div class="text-xs text-gray-400">In file manager</div>
|
||||
</a>
|
||||
</div>
|
||||
{{-- ── Stat Pills (BELOW schedule) ─────────────────────────── --}}
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3 mb-4">
|
||||
<a href="{{ route('clients.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl lg:text-3xl font-extrabold text-pink-500">{{ $stats['total_clients'] }}</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Total Clients</div>
|
||||
<div class="text-xs text-gray-400">{{ $stats['active_clients'] }} active</div>
|
||||
</a>
|
||||
<a href="{{ route('schedule.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl lg:text-3xl font-extrabold text-purple-500">{{ $stats['upcoming_events'] }}</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Upcoming Events</div>
|
||||
<div class="text-xs text-gray-400">Next 3 months</div>
|
||||
</a>
|
||||
<a href="{{ route('invoices.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl lg:text-3xl font-extrabold text-amber-500">{{ $stats['pending_invoices'] }}</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Pending Invoices</div>
|
||||
<div class="text-xs text-gray-400">Awaiting payment</div>
|
||||
</a>
|
||||
<div class="stat-pill">
|
||||
<div class="text-lg lg:text-2xl font-extrabold text-emerald-500 leading-tight">
|
||||
Rp {{ number_format($stats['total_revenue'], 0, ',', '.') }}
|
||||
</div>
|
||||
<div class="text-xs lg:text-sm font-semibold text-gray-600">Revenue (Paid)</div>
|
||||
<div class="text-xs text-gray-400">All time</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ── Bottom Row ───────────────────────────────────────────── --}}
|
||||
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
|
||||
{{-- ── Secondary Stats ──────────────────────────────────────── --}}
|
||||
<div class="grid grid-cols-3 gap-3 mb-4">
|
||||
<a href="{{ route('client-categories.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl font-extrabold text-indigo-500">{{ $stats['total_categories'] }}</div>
|
||||
<div class="text-xs font-semibold text-gray-600">Categories</div>
|
||||
<div class="text-xs text-gray-400">{{ $stats['total_subcategories'] }} subcategories</div>
|
||||
</a>
|
||||
<a href="{{ route('contracts.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl font-extrabold text-rose-500">{{ $stats['active_contracts'] }}</div>
|
||||
<div class="text-xs font-semibold text-gray-600">Brand Contracts</div>
|
||||
<div class="text-xs text-gray-400">{{ $stats['total_contracts'] }} total</div>
|
||||
</a>
|
||||
<a href="{{ route('files.index') }}" class="stat-pill hover:shadow-md transition-shadow">
|
||||
<div class="text-2xl font-extrabold text-teal-500">{{ $stats['total_files'] }}</div>
|
||||
<div class="text-xs font-semibold text-gray-600">Files Saved</div>
|
||||
<div class="text-xs text-gray-400">In file manager</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{-- Social Stats --}}
|
||||
<div class="cat-card p-4 lg:p-5">
|
||||
<h2 class="text-sm font-bold text-gray-700 flex items-center gap-2 mb-3">
|
||||
<span>📱</span> Social Snapshot
|
||||
</h2>
|
||||
@forelse($socialStats as $stat)
|
||||
<div class="flex items-center justify-between py-2 border-b border-pink-50 last:border-0">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-xl">{{ $stat->platform_icon }}</span>
|
||||
<div>
|
||||
<div class="text-xs font-semibold text-gray-700">{{ ucfirst($stat->platform) }}</div>
|
||||
<div class="text-xs text-gray-400">{{ $stat->handle ?? 'Not set' }}</div>
|
||||
{{-- ── Bottom Row ───────────────────────────────────────────── --}}
|
||||
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
|
||||
<!--
|
||||
{{-- Social Stats --}}
|
||||
<div class="cat-card p-4 lg:p-5">
|
||||
<h2 class="text-sm font-bold text-gray-700 flex items-center gap-2 mb-3">
|
||||
<span>📱</span> Social Snapshot
|
||||
</h2>
|
||||
@forelse($socialStats as $stat)
|
||||
<div class="flex items-center justify-between py-2 border-b border-pink-50 last:border-0">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-xl">{{ $stat->platform_icon }}</span>
|
||||
<div>
|
||||
<div class="text-xs font-semibold text-gray-700">{{ ucfirst($stat->platform) }}</div>
|
||||
<div class="text-xs text-gray-400">{{ $stat->handle ?? 'Not set' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<div class="font-bold text-gray-800 text-sm">{{ $stat->formatted_followers }}</div>
|
||||
<div class="text-xs text-gray-400">{{ $stat->engagement_rate }}% eng.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<div class="font-bold text-gray-800 text-sm">{{ $stat->formatted_followers }}</div>
|
||||
<div class="text-xs text-gray-400">{{ $stat->engagement_rate }}% eng.</div>
|
||||
</div>
|
||||
@empty
|
||||
<p class="text-xs text-gray-400 text-center py-3">
|
||||
No stats yet.
|
||||
<a href="{{ route('social-hub.index') }}" class="text-pink-500 hover:underline">Add stats →</a>
|
||||
</p>
|
||||
@endforelse
|
||||
</div>
|
||||
-->
|
||||
{{-- Recent Invoices --}}
|
||||
<div class="cat-card p-4 lg:p-5">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<h2 class="text-sm font-bold text-gray-700 flex items-center gap-2"><span>🧾</span> Recent Invoices</h2>
|
||||
<a href="{{ route('invoices.index') }}" class="text-xs text-pink-500 hover:underline">All →</a>
|
||||
</div>
|
||||
@empty
|
||||
<p class="text-xs text-gray-400 text-center py-3">
|
||||
No stats yet.
|
||||
<a href="{{ route('social-hub.index') }}" class="text-pink-500 hover:underline">Add stats →</a>
|
||||
</p>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
{{-- Recent Invoices --}}
|
||||
<div class="cat-card p-4 lg:p-5">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<h2 class="text-sm font-bold text-gray-700 flex items-center gap-2"><span>🧾</span> Recent Invoices</h2>
|
||||
<a href="{{ route('invoices.index') }}" class="text-xs text-pink-500 hover:underline">All →</a>
|
||||
@forelse($latestInvoices as $invoice)
|
||||
<div class="flex items-center justify-between py-2 border-b border-pink-50 last:border-0">
|
||||
<div class="min-w-0">
|
||||
<div class="text-xs font-semibold text-gray-700 truncate">{{ $invoice->invoice_number }}</div>
|
||||
<div class="text-xs text-gray-400 truncate">{{ $invoice->client?->name ?? 'No client' }}</div>
|
||||
</div>
|
||||
<div class="text-right shrink-0 ml-2">
|
||||
<div class="text-xs font-bold text-gray-700">{{ $invoice->formatted_total }}</div>
|
||||
<span class="badge {{ $invoice->status->badgeClass() }} text-xs">{{ $invoice->status->label() }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p class="text-xs text-gray-400 text-center py-3">No invoices yet.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
@forelse($latestInvoices as $invoice)
|
||||
<div class="flex items-center justify-between py-2 border-b border-pink-50 last:border-0">
|
||||
<div class="min-w-0">
|
||||
<div class="text-xs font-semibold text-gray-700 truncate">{{ $invoice->invoice_number }}</div>
|
||||
<div class="text-xs text-gray-400 truncate">{{ $invoice->client?->name ?? 'No client' }}</div>
|
||||
</div>
|
||||
<div class="text-right shrink-0 ml-2">
|
||||
<div class="text-xs font-bold text-gray-700">{{ $invoice->formatted_total }}</div>
|
||||
<span class="badge {{ $invoice->status->badgeClass() }} text-xs">{{ $invoice->status->label() }}</span>
|
||||
</div>
|
||||
|
||||
{{-- Content Progress --}}
|
||||
<div class="cat-card p-4 lg:p-5">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<h2 class="text-sm font-bold text-gray-700 flex items-center gap-2"><span>🎬</span> Content Pipeline</h2>
|
||||
<a href="{{ route('content.index') }}" class="text-xs text-pink-500 hover:underline">Board →</a>
|
||||
</div>
|
||||
@empty
|
||||
<p class="text-xs text-gray-400 text-center py-3">No invoices yet.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
{{-- Content Progress --}}
|
||||
<div class="cat-card p-4 lg:p-5">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<h2 class="text-sm font-bold text-gray-700 flex items-center gap-2"><span>🎬</span> Content Pipeline</h2>
|
||||
<a href="{{ route('content.index') }}" class="text-xs text-pink-500 hover:underline">Board →</a>
|
||||
<div class="flex items-center gap-3 py-3">
|
||||
<span class="text-3xl font-extrabold text-purple-500">{{ $stats['content_in_progress'] }}</span>
|
||||
<span class="text-sm text-gray-600">pieces currently in progress</span>
|
||||
</div>
|
||||
<a href="{{ route('content.create') }}" class="btn-sakura text-xs w-full text-center mt-2">+ New Brief</a>
|
||||
</div>
|
||||
<div class="flex items-center gap-3 py-3">
|
||||
<span class="text-3xl font-extrabold text-purple-500">{{ $stats['content_in_progress'] }}</span>
|
||||
<span class="text-sm text-gray-600">pieces currently in progress</span>
|
||||
</div>
|
||||
<a href="{{ route('content.create') }}" class="btn-sakura text-xs w-full text-center mt-2">+ New Brief</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -1,197 +1,372 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
@php
|
||||
$accent = $invoiceSettings->accent_color ?? '#FFB7C5';
|
||||
$hex = ltrim($accent, '#');
|
||||
$hex = ltrim($accent, '#');
|
||||
$r = hexdec(substr($hex, 0, 2));
|
||||
$g = hexdec(substr($hex, 2, 2));
|
||||
$b = hexdec(substr($hex, 4, 2));
|
||||
// 92% white + 8% accent → very light tint
|
||||
$tint = sprintf('#%02X%02X%02X',
|
||||
(int)(255 * 0.92 + $r * 0.08),
|
||||
(int)(255 * 0.92 + $g * 0.08),
|
||||
(int)(255 * 0.92 + $b * 0.08)
|
||||
$tint = sprintf(
|
||||
'#%02X%02X%02X',
|
||||
(int) (255 * 0.92 + $r * 0.08),
|
||||
(int) (255 * 0.92 + $g * 0.08),
|
||||
(int) (255 * 0.92 + $b * 0.08)
|
||||
);
|
||||
// 80% white + 20% accent → medium-light tint (for borders)
|
||||
$tintMid = sprintf('#%02X%02X%02X',
|
||||
(int)(255 * 0.80 + $r * 0.20),
|
||||
(int)(255 * 0.80 + $g * 0.20),
|
||||
(int)(255 * 0.80 + $b * 0.20)
|
||||
$tintMid = sprintf(
|
||||
'#%02X%02X%02X',
|
||||
(int) (255 * 0.80 + $r * 0.20),
|
||||
(int) (255 * 0.80 + $g * 0.20),
|
||||
(int) (255 * 0.80 + $b * 0.20)
|
||||
);
|
||||
@endphp
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: 'Helvetica', Arial, sans-serif; color: #374151; font-size: 13px; padding: 40px; }
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Helvetica', Arial, sans-serif;
|
||||
color: #374151;
|
||||
font-size: 13px;
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
/* ── Header ───────────────────────────────── */
|
||||
.header-table { width: 100%; margin-bottom: 36px; }
|
||||
.logo-name { font-size: 22px; font-weight: 900; color: {{ $accent }}; }
|
||||
.logo-sub { font-size: 11px; color: #9CA3AF; margin-top: 3px; }
|
||||
.inv-number { font-size: 22px; font-weight: 700; color: #1F2937; }
|
||||
.header-table {
|
||||
width: 100%;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
|
||||
.logo-name {
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
color:
|
||||
{{ $accent }}
|
||||
;
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 11px;
|
||||
color: #9CA3AF;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.inv-number {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #1F2937;
|
||||
}
|
||||
|
||||
|
||||
/* ── Billing grid ─────────────────────────── */
|
||||
.billing-table { width: 100%; margin-bottom: 28px; }
|
||||
.section-title { font-size: 10px; font-weight: 700; color: #9CA3AF;
|
||||
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
|
||||
.billing-name { font-weight: 700; font-size: 15px; color: #111827; }
|
||||
.billing-detail{ font-size: 12px; color: #6B7280; margin-top: 2px; }
|
||||
.detail-table { font-size: 12px; width: auto; float: right; }
|
||||
.detail-table td { padding: 3px 0; }
|
||||
.detail-table .lbl { color: #9CA3AF; padding-right: 16px; white-space: nowrap; }
|
||||
.detail-table .val { font-weight: 600; text-align: right; white-space: nowrap; }
|
||||
.billing-table {
|
||||
width: 100%;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: #9CA3AF;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.billing-name {
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.billing-detail {
|
||||
font-size: 12px;
|
||||
color: #6B7280;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.detail-table {
|
||||
font-size: 12px;
|
||||
width: auto;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.detail-table td {
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
.detail-table .lbl {
|
||||
color: #9CA3AF;
|
||||
padding-right: 16px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.detail-table .val {
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Line items ───────────────────────────── */
|
||||
table.items { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
|
||||
table.items thead td { background: {{ $tint }}; padding: 10px 12px;
|
||||
font-size: 10px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; }
|
||||
table.items tbody td { padding: 10px 12px; border-bottom: 1px solid {{ $tintMid }}; font-size: 12px; }
|
||||
.td-right { text-align: right; }
|
||||
.td-center { text-align: center; }
|
||||
table.items {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
table.items thead td {
|
||||
background:
|
||||
{{ $tint }}
|
||||
;
|
||||
padding: 10px 12px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: #9CA3AF;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
table.items tbody td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid
|
||||
{{ $tintMid }}
|
||||
;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.td-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.td-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ── Totals ───────────────────────────────── */
|
||||
.totals-wrap { width: 100%; margin-bottom: 24px; }
|
||||
.totals-inner { width: 260px; float: right; }
|
||||
.totals-inner table { width: 100%; font-size: 12px; border-collapse: collapse; }
|
||||
.totals-inner table td { padding: 4px 0; }
|
||||
.totals-inner table td.amount { text-align: right; font-weight: 600; }
|
||||
.totals-total td { border-top: 2px solid {{ $accent }};
|
||||
padding-top: 8px !important; margin-top: 6px;
|
||||
font-size: 15px; font-weight: 800; color: {{ $accent }}; }
|
||||
.clearfix::after { content: ""; display: table; clear: both; }
|
||||
.totals-wrap {
|
||||
width: 100%;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.totals-inner {
|
||||
width: 260px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.totals-inner table {
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.totals-inner table td {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.totals-inner table td.amount {
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.totals-total td {
|
||||
border-top: 2px solid
|
||||
{{ $accent }}
|
||||
;
|
||||
padding-top: 8px !important;
|
||||
margin-top: 6px;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
color:
|
||||
{{ $accent }}
|
||||
;
|
||||
}
|
||||
|
||||
.clearfix::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* ── Payment info ─────────────────────────── */
|
||||
.bank-box { background: {{ $tint }}; border-radius: 10px;
|
||||
padding: 14px 16px; margin-bottom: 16px; }
|
||||
.bank-title { font-weight: 700; font-size: 12px; color: #374151; margin-bottom: 4px; }
|
||||
.bank-detail { font-size: 12px; color: #6B7280; }
|
||||
.bank-box {
|
||||
background:
|
||||
{{ $tint }}
|
||||
;
|
||||
border-radius: 10px;
|
||||
padding: 14px 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.notes { font-size: 11px; color: #9CA3AF; font-style: italic; }
|
||||
.footer { margin-top: 40px; text-align: center; font-size: 11px; color: #D1D5DB; }
|
||||
.bank-title {
|
||||
font-weight: 700;
|
||||
font-size: 12px;
|
||||
color: #374151;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.bank-detail {
|
||||
font-size: 12px;
|
||||
color: #6B7280;
|
||||
}
|
||||
|
||||
.notes {
|
||||
font-size: 11px;
|
||||
color: #9CA3AF;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
color: #D1D5DB;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{{-- ── Header ─────────────────────────────────────────────────── --}}
|
||||
<table class="header-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="vertical-align:middle;">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
@if($invoiceSettings->header_logo && file_exists(storage_path('app/public/' . $invoiceSettings->header_logo)))
|
||||
<td style="vertical-align:middle; padding-right:12px; width:64px;">
|
||||
<img src="{{ storage_path('app/public/' . $invoiceSettings->header_logo) }}"
|
||||
style="width:52px; height:52px; object-fit:cover; border-radius:12px; display:block;" alt="Logo">
|
||||
</td>
|
||||
@endif
|
||||
<td style="vertical-align:middle;">
|
||||
<div class="logo-name">{{ $invoiceSettings->header_name ?: 'Cathy' }}</div>
|
||||
<div class="logo-sub">{{ $invoiceSettings->header_title ?: 'Personal Talent Assistant' }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="text-align:right; vertical-align:top;">
|
||||
<div class="inv-number">{{ $invoice->invoice_number }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- ── Billing Info ─────────────────────────────────────────────── --}}
|
||||
<table class="billing-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="width:50%; vertical-align:top; padding-right:24px;">
|
||||
<div class="section-title">Bill To</div>
|
||||
@if($invoice->client)
|
||||
<div class="billing-name">{{ $invoice->client->name }}</div>
|
||||
@if($invoice->client->company) <div class="billing-detail">{{ $invoice->client->company }}</div> @endif
|
||||
@if($invoice->client->email) <div class="billing-detail">{{ $invoice->client->email }}</div> @endif
|
||||
@if($invoice->client->full_address) <div class="billing-detail">{{ $invoice->client->full_address }}</div> @endif
|
||||
@else
|
||||
<div class="billing-detail">—</div>
|
||||
@endif
|
||||
</td>
|
||||
<td style="width:50%; vertical-align:top; text-align:right;">
|
||||
<div class="section-title">Invoice Details</div>
|
||||
<table class="detail-table" cellpadding="0" cellspacing="0">
|
||||
<tr><td class="lbl">Issue Date</td><td class="val">{{ $invoice->issue_date->format('d M Y') }}</td></tr>
|
||||
<tr><td class="lbl">Due Date</td><td class="val">{{ $invoice->due_date->format('d M Y') }}</td></tr>
|
||||
@if($invoice->paid_date)
|
||||
<tr><td class="lbl">Paid Date</td><td class="val">{{ $invoice->paid_date->format('d M Y') }}</td></tr>
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- ── Line Items ───────────────────────────────────────────────── --}}
|
||||
<table class="items" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
{{-- ── Header ─────────────────────────────────────────────────── --}}
|
||||
<table class="header-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="width:50%;">Description</td>
|
||||
<td class="td-center" style="width:10%;">Qty</td>
|
||||
<td class="td-right" style="width:20%;">Unit Price</td>
|
||||
<td class="td-right" style="width:20%;">Total</td>
|
||||
<td style="vertical-align:middle;">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
@if($invoiceSettings->header_logo && file_exists(storage_path('app/public/' . $invoiceSettings->header_logo)))
|
||||
<td style="vertical-align:middle; padding-right:12px; width:64px;">
|
||||
<img src="{{ storage_path('app/public/' . $invoiceSettings->header_logo) }}"
|
||||
style="width:52px; height:52px; object-fit:cover; border-radius:12px; display:block;"
|
||||
alt="Logo">
|
||||
</td>
|
||||
@endif
|
||||
<td style="vertical-align:middle;">
|
||||
<div class="logo-name">{{ $invoiceSettings->header_name ?: 'Cathy' }}</div>
|
||||
<div class="logo-sub">{{ $invoiceSettings->header_title ?: 'Personal Talent Assistant' }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="text-align:right; vertical-align:top;">
|
||||
<div class="inv-number">{{ $invoice->invoice_number }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($invoice->items as $item)
|
||||
</table>
|
||||
|
||||
{{-- ── Billing Info ─────────────────────────────────────────────── --}}
|
||||
<table class="billing-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
{{ $item->description }}
|
||||
@if(!$item->is_taxable)
|
||||
<span style="margin-left:6px; font-size:10px; background:#F3F4F6; color:#6B7280; padding:2px 8px; border-radius:10px; font-weight:600;">Non-Taxable</span>
|
||||
<td style="width:50%; vertical-align:top; padding-right:24px;">
|
||||
<div class="section-title">Bill To</div>
|
||||
@if($invoice->client)
|
||||
<div class="billing-name">{{ $invoice->client->name }}</div>
|
||||
@if($invoice->client->company)
|
||||
<div class="billing-detail">{{ $invoice->client->company }}</div> @endif
|
||||
@if($invoice->client->email)
|
||||
<div class="billing-detail">{{ $invoice->client->email }}</div> @endif
|
||||
@if($invoice->client->full_address)
|
||||
<div class="billing-detail">{{ $invoice->client->full_address }}</div> @endif
|
||||
@else
|
||||
<div class="billing-detail">—</div>
|
||||
@endif
|
||||
</td>
|
||||
<td class="td-center">{{ $item->quantity }}</td>
|
||||
<td class="td-right">Rp {{ number_format($item->unit_price, 0, ',', '.') }}</td>
|
||||
<td class="td-right" style="font-weight:600;">Rp {{ number_format($item->total, 0, ',', '.') }}</td>
|
||||
<td style="width:50%; vertical-align:top; text-align:right;">
|
||||
<div class="section-title">Invoice Details</div>
|
||||
<table class="detail-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="lbl">Issue Date</td>
|
||||
<td class="val">{{ $invoice->issue_date->format('d M Y') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="lbl">Due Date</td>
|
||||
<td class="val">{{ $invoice->due_date->format('d M Y') }}</td>
|
||||
</tr>
|
||||
@if($invoice->paid_date)
|
||||
<tr>
|
||||
<td class="lbl">Paid Date</td>
|
||||
<td class="val">{{ $invoice->paid_date->format('d M Y') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
{{-- ── Totals ───────────────────────────────────────────────────── --}}
|
||||
<div class="totals-wrap clearfix">
|
||||
<div class="totals-inner">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
{{-- ── Line Items ───────────────────────────────────────────────── --}}
|
||||
<table class="items" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="color:#6B7280;">Subtotal</td>
|
||||
<td class="amount">Rp {{ number_format($invoice->subtotal, 0, ',', '.') }}</td>
|
||||
<td style="width:50%;">Description</td>
|
||||
<td class="td-center" style="width:10%;">Qty</td>
|
||||
<td class="td-right" style="width:20%;">Unit Price</td>
|
||||
<td class="td-right" style="width:20%;">Total</td>
|
||||
</tr>
|
||||
@if($invoice->tax_rate > 0)
|
||||
<tr>
|
||||
<td style="color:#D97706;">Tax ({{ $invoice->tax_rate }}% — paid by client)</td>
|
||||
<td class="amount" style="color:#D97706;">Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="totals-total">
|
||||
<td>Grand Total</td>
|
||||
<td class="amount">{{ $invoice->formatted_total }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($invoice->items as $item)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $item->description }}
|
||||
@if(!$item->is_taxable)
|
||||
<span
|
||||
style="margin-left:6px; font-size:10px; background:#F3F4F6; color:#6B7280; padding:2px 8px; border-radius:10px; font-weight:600;">Non-Taxable</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="td-center">{{ $item->quantity }}</td>
|
||||
<td class="td-right">Rp {{ number_format($item->unit_price, 0, ',', '.') }}</td>
|
||||
<td class="td-right" style="font-weight:600;">Rp {{ number_format($item->total, 0, ',', '.') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{-- ── Totals ───────────────────────────────────────────────────── --}}
|
||||
<div class="totals-wrap clearfix">
|
||||
<div class="totals-inner">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="color:#6B7280;">Subtotal</td>
|
||||
<td class="amount">Rp {{ number_format($invoice->subtotal, 0, ',', '.') }}</td>
|
||||
</tr>
|
||||
@if($invoice->tax_rate > 0)
|
||||
<tr>
|
||||
<td style="color:#D97706;">Tax ({{ $invoice->tax_rate }}% — paid by client)</td>
|
||||
<td class="amount" style="color:#D97706;">Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="totals-total">
|
||||
<td>Grand Total</td>
|
||||
<td class="amount">{{ $invoice->formatted_total }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ── Payment Info ──────────────────────────────────────────────── --}}
|
||||
@if($invoice->bank_name)
|
||||
<div class="bank-box">
|
||||
<div class="bank-title">Payment Information</div>
|
||||
<div class="bank-detail">
|
||||
{{ $invoice->bank_name }}
|
||||
@if($invoice->branch_name) · {{ $invoice->branch_name }} @endif
|
||||
· {{ $invoice->bank_account }} · a/n {{ $invoice->bank_holder }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
{{-- ── Payment Info ──────────────────────────────────────────────── --}}
|
||||
@if($invoice->bank_name)
|
||||
<div class="bank-box">
|
||||
<div class="bank-title">Payment Information</div>
|
||||
<div class="bank-detail">
|
||||
{{ $invoice->bank_name }}
|
||||
@if($invoice->branch_name) · {{ $invoice->branch_name }} @endif
|
||||
· {{ $invoice->bank_account }} · a/n {{ $invoice->bank_holder }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($invoice->notes)
|
||||
<div class="notes">{{ $invoice->notes }}</div>
|
||||
@endif
|
||||
@if($invoice->notes)
|
||||
<div class="notes">{{ $invoice->notes }}</div>
|
||||
@endif
|
||||
|
||||
<div class="footer">Generated by KOL Manager · Thank you for the collaboration!</div>
|
||||
<div class="footer">Thank you for the collaboration!</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,5 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="light">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
@@ -15,301 +16,276 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
</head>
|
||||
|
||||
<body class="bg-cream font-sans antialiased" x-data="appShell()">
|
||||
|
||||
{{-- ── Backdrop (mobile only) ─────────────────────────────────── --}}
|
||||
<div
|
||||
x-show="sidebarOpen"
|
||||
x-transition:enter="transition-opacity duration-300"
|
||||
x-transition:enter-start="opacity-0"
|
||||
x-transition:enter-end="opacity-100"
|
||||
x-transition:leave="transition-opacity duration-300"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
@click="sidebarOpen = false"
|
||||
class="fixed inset-0 z-30 bg-black/40 lg:hidden"
|
||||
style="display:none"
|
||||
></div>
|
||||
{{-- ── Backdrop (mobile only) ─────────────────────────────────── --}}
|
||||
<div x-show="sidebarOpen" x-transition:enter="transition-opacity duration-300" x-transition:enter-start="opacity-0"
|
||||
x-transition:enter-end="opacity-100" x-transition:leave="transition-opacity duration-300"
|
||||
x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @click="sidebarOpen = false"
|
||||
class="fixed inset-0 z-30 bg-black/40 lg:hidden" style="display:none"></div>
|
||||
|
||||
{{-- ── Sidebar ─────────────────────────────────────────────────── --}}
|
||||
<aside
|
||||
:class="sidebarOpen ? 'translate-x-0' : '-translate-x-full'"
|
||||
class="fixed inset-y-0 left-0 z-40 w-64 bg-white border-r border-pink-100 shadow-lg
|
||||
{{-- ── Sidebar ─────────────────────────────────────────────────── --}}
|
||||
<aside :class="sidebarOpen ? 'translate-x-0' : '-translate-x-full'" class="fixed inset-y-0 left-0 z-40 w-64 bg-white border-r border-pink-100 shadow-lg
|
||||
flex flex-col py-6 px-4
|
||||
transition-transform duration-300 ease-in-out
|
||||
lg:translate-x-0"
|
||||
>
|
||||
{{-- Logo --}}
|
||||
<div class="flex items-center justify-between gap-3 mb-8 px-2">
|
||||
<a href="{{ route('dashboard') }}" @click="sidebarOpen = false"
|
||||
class="flex items-center gap-3 group focus:outline-none">
|
||||
<span class="text-3xl transition-transform duration-200 group-hover:scale-110 group-active:scale-95 select-none">🐱</span>
|
||||
<div class="text-left">
|
||||
<div class="text-lg font-extrabold text-pink-500 leading-tight">Cathy's App</div>
|
||||
<div class="text-xs text-gray-400">Your Purr-fect Assistant</div>
|
||||
</div>
|
||||
</a>
|
||||
<button @click="sidebarOpen = false" class="lg:hidden text-gray-400 hover:text-pink-500 text-xl leading-none" aria-label="Close">✕</button>
|
||||
</div>
|
||||
lg:translate-x-0">
|
||||
{{-- Logo --}}
|
||||
<div class="flex items-center justify-between gap-3 mb-8 px-2">
|
||||
<a href="{{ route('dashboard') }}" @click="sidebarOpen = false"
|
||||
class="flex items-center gap-3 group focus:outline-none">
|
||||
<span
|
||||
class="text-3xl transition-transform duration-200 group-hover:scale-110 group-active:scale-95 select-none">🐱</span>
|
||||
<div class="text-left">
|
||||
<div class="text-lg font-extrabold text-pink-500 leading-tight">Cathy's App</div>
|
||||
<div class="text-xs text-gray-400">Your Purr-fect Assistant</div>
|
||||
</div>
|
||||
</a>
|
||||
<button @click="sidebarOpen = false"
|
||||
class="lg:hidden text-gray-400 hover:text-pink-500 text-xl leading-none" aria-label="Close">✕</button>
|
||||
</div>
|
||||
|
||||
{{-- Nav --}}
|
||||
<nav class="flex flex-col gap-1 flex-1 overflow-y-auto">
|
||||
<a href="{{ route('dashboard') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('dashboard') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🏠</span> Dashboard
|
||||
</a>
|
||||
{{-- Nav --}}
|
||||
<nav class="flex flex-col gap-1 flex-1 overflow-y-auto">
|
||||
<a href="{{ route('dashboard') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('dashboard') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🏠</span> Dashboard
|
||||
</a>
|
||||
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Manage</div>
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Manage</div>
|
||||
|
||||
<a href="{{ route('schedule.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('schedule.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📅</span>
|
||||
<span class="flex-1">Schedule</span>
|
||||
</a>
|
||||
<a href="{{ route('schedule.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('schedule.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📅</span>
|
||||
<span class="flex-1">Schedule</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('clients.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('clients.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">👥</span> Clients / CRM
|
||||
</a>
|
||||
<a href="{{ route('clients.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('clients.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">👥</span> Clients / CRM
|
||||
</a>
|
||||
|
||||
<a href="{{ route('client-categories.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('client-categories.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🏷️</span> Categories
|
||||
</a>
|
||||
|
||||
<a href="{{ route('contracts.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('contracts.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📋</span> Brand Contracts
|
||||
</a>
|
||||
<a href="{{ route('client-categories.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('client-categories.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🏷️</span> Categories
|
||||
</a>
|
||||
|
||||
<a href="{{ route('contracts.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('contracts.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📋</span> Brand Contracts
|
||||
</a>
|
||||
<!--
|
||||
<a href="{{ route('social-hub.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('social-hub.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📱</span> Social Hub
|
||||
</a>
|
||||
-->
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Finance</div>
|
||||
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Finance</div>
|
||||
<a href="{{ route('invoices.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('invoices.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🧾</span> Invoices
|
||||
</a>
|
||||
|
||||
<a href="{{ route('invoices.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('invoices.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🧾</span> Invoices
|
||||
</a>
|
||||
<a href="{{ route('rate-cards.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('rate-cards.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">💰</span> Rate Cards
|
||||
</a>
|
||||
|
||||
<a href="{{ route('rate-cards.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('rate-cards.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">💰</span> Rate Cards
|
||||
</a>
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Content</div>
|
||||
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Content</div>
|
||||
<a href="{{ route('content.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('content.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🎬</span> Content Board
|
||||
</a>
|
||||
|
||||
<a href="{{ route('content.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('content.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🎬</span> Content Board
|
||||
</a>
|
||||
<a href="{{ route('files.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('files.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📁</span> Files
|
||||
</a>
|
||||
|
||||
<a href="{{ route('files.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('files.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📁</span> Files
|
||||
</a>
|
||||
<a href="{{ route('notes.index') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('notes.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📝</span> Notes
|
||||
</a>
|
||||
|
||||
<a href="{{ route('notes.index') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('notes.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">📝</span> Notes
|
||||
</a>
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Settings</div>
|
||||
|
||||
<div class="text-xs font-bold text-gray-400 uppercase tracking-wider mt-4 mb-1 px-2">Settings</div>
|
||||
<a href="{{ route('settings.notifications') }}" @click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('settings.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🔔</span> Notifications
|
||||
</a>
|
||||
|
||||
<a href="{{ route('settings.notifications') }}"
|
||||
@click="sidebarOpen = false"
|
||||
class="nav-item {{ request()->routeIs('settings.*') ? 'active' : '' }}">
|
||||
<span class="text-lg shrink-0">🔔</span> Notifications
|
||||
</a>
|
||||
|
||||
{{-- Logout --}}
|
||||
<form method="POST" action="{{ route('gate.logout') }}" class="mt-auto pt-4">
|
||||
@csrf
|
||||
<button type="submit"
|
||||
{{-- Logout --}}
|
||||
<form method="POST" action="{{ route('gate.logout') }}" class="mt-auto pt-4">
|
||||
@csrf
|
||||
<button type="submit"
|
||||
class="nav-item w-full text-left text-gray-400 hover:text-red-400 hover:bg-red-50 transition-colors">
|
||||
<span class="text-lg shrink-0">🚪</span> Lock App
|
||||
</button>
|
||||
</form>
|
||||
</nav>
|
||||
</aside>
|
||||
<span class="text-lg shrink-0">🚪</span> Lock App
|
||||
</button>
|
||||
</form>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
{{-- ── Main wrapper ─────────────────────────────────────────────── --}}
|
||||
<div class="min-h-screen flex flex-col lg:ml-64">
|
||||
{{-- ── Main wrapper ─────────────────────────────────────────────── --}}
|
||||
<div class="min-h-screen flex flex-col lg:ml-64">
|
||||
|
||||
<div class="flex-1 flex flex-col min-w-0">
|
||||
<div class="flex-1 flex flex-col min-w-0">
|
||||
|
||||
{{-- ── Topbar ───────────────────────────────────────────── --}}
|
||||
<header class="sticky top-0 z-20 bg-white border-b border-pink-100 px-4 lg:px-8 py-3 lg:py-4 flex items-center gap-3 shadow-sm">
|
||||
{{-- ── Topbar ───────────────────────────────────────────── --}}
|
||||
<header
|
||||
class="sticky top-0 z-20 bg-white border-b border-pink-100 px-4 lg:px-8 py-3 lg:py-4 flex items-center gap-3 shadow-sm">
|
||||
|
||||
{{-- Hamburger (mobile) --}}
|
||||
<button
|
||||
@click="sidebarOpen = true"
|
||||
class="lg:hidden text-2xl transition-transform duration-150 active:scale-90 focus:outline-none select-none"
|
||||
aria-label="Open menu"
|
||||
>🐱</button>
|
||||
{{-- Hamburger (mobile) --}}
|
||||
<button @click="sidebarOpen = true"
|
||||
class="lg:hidden text-2xl transition-transform duration-150 active:scale-90 focus:outline-none select-none"
|
||||
aria-label="Open menu">🐱</button>
|
||||
|
||||
{{-- Page title (hidden when search open) --}}
|
||||
<div class="flex-1 min-w-0" x-show="!searchOpen" x-transition>
|
||||
<h1 class="text-base lg:text-xl font-bold text-gray-800 truncate">@yield('page-title', 'Dashboard')</h1>
|
||||
<p class="text-xs lg:text-sm text-gray-400 hidden sm:block">@yield('page-subtitle', today()->format('l, d F Y'))</p>
|
||||
</div>
|
||||
{{-- Page title (hidden when search open) --}}
|
||||
<div class="flex-1 min-w-0" x-show="!searchOpen" x-transition>
|
||||
<h1 class="text-base lg:text-xl font-bold text-gray-800 truncate">@yield('page-title', 'Dashboard')
|
||||
</h1>
|
||||
<p class="text-xs lg:text-sm text-gray-400 hidden sm:block">
|
||||
@yield('page-subtitle', today()->format('l, d F Y'))</p>
|
||||
</div>
|
||||
|
||||
{{-- ── Global Search bar ─────────────────────────── --}}
|
||||
<div class="flex-1 min-w-0" x-show="searchOpen" x-transition style="display:none">
|
||||
<div class="relative">
|
||||
<span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 text-sm pointer-events-none"></span>
|
||||
<input
|
||||
id="global-search-input"
|
||||
type="text"
|
||||
placeholder="Search clients, events, invoices…"
|
||||
class="input-soft pl-9 pr-4 py-2 text-sm w-full"
|
||||
x-model="searchQuery"
|
||||
@input.debounce.300ms="doSearch()"
|
||||
@keydown.escape="closeSearch()"
|
||||
x-ref="searchInput"
|
||||
>
|
||||
{{-- Search results dropdown --}}
|
||||
<div
|
||||
x-show="searchResults.length > 0 || (searchQuery.length >= 2 && !searchLoading)"
|
||||
class="absolute top-full left-0 right-0 mt-2 bg-white rounded-2xl shadow-xl border border-pink-100 z-50 max-h-80 overflow-y-auto"
|
||||
@click.outside="searchResults = []"
|
||||
>
|
||||
<template x-if="searchLoading">
|
||||
<div class="px-4 py-3 text-sm text-gray-400 flex items-center gap-2">
|
||||
<span class="animate-spin">🐾</span> Searching…
|
||||
{{-- ── Global Search bar ─────────────────────────── --}}
|
||||
<div class="flex-1 min-w-0" x-show="searchOpen" x-transition style="display:none">
|
||||
<div class="relative">
|
||||
<span
|
||||
class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 text-sm pointer-events-none"></span>
|
||||
<input id="global-search-input" type="text" placeholder="Search clients, events, invoices…"
|
||||
class="input-soft pl-9 pr-4 py-2 text-sm w-full" x-model="searchQuery"
|
||||
@input.debounce.300ms="doSearch()" @keydown.escape="closeSearch()" x-ref="searchInput">
|
||||
{{-- Search results dropdown --}}
|
||||
<div x-show="searchResults.length > 0 || (searchQuery.length >= 2 && !searchLoading)"
|
||||
class="absolute top-full left-0 right-0 mt-2 bg-white rounded-2xl shadow-xl border border-pink-100 z-50 max-h-80 overflow-y-auto"
|
||||
@click.outside="searchResults = []">
|
||||
<template x-if="searchLoading">
|
||||
<div class="px-4 py-3 text-sm text-gray-400 flex items-center gap-2">
|
||||
<span class="animate-spin">🐾</span> Searching…
|
||||
</div>
|
||||
</template>
|
||||
<template x-if="!searchLoading && searchResults.length === 0 && searchQuery.length >= 2">
|
||||
<div class="px-4 py-3 text-sm text-gray-400">No results for "<span
|
||||
x-text="searchQuery"></span>"</div>
|
||||
</template>
|
||||
<template x-for="group in searchResults" :key="group.type">
|
||||
<div>
|
||||
<div class="px-4 py-1.5 text-xs font-bold text-gray-400 uppercase tracking-wide bg-pink-50/60 sticky top-0"
|
||||
x-text="group.label"></div>
|
||||
<template x-for="item in group.items" :key="item.url">
|
||||
<a :href="item.url"
|
||||
class="flex items-center gap-3 px-4 py-2.5 hover:bg-pink-50 transition-colors"
|
||||
@click="closeSearch()">
|
||||
<span class="text-lg shrink-0" x-text="item.icon"></span>
|
||||
<div class="min-w-0">
|
||||
<div class="text-sm font-semibold text-gray-700 truncate"
|
||||
x-text="item.title"></div>
|
||||
<div class="text-xs text-gray-400 truncate" x-text="item.subtitle">
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<div class="border-t border-pink-50 px-4 py-2">
|
||||
<a :href="'/search?q=' + encodeURIComponent(searchQuery)"
|
||||
class="text-xs text-pink-500 hover:text-pink-700 font-medium flex items-center gap-1"
|
||||
@click="closeSearch()">
|
||||
🔍 See all results for "<span x-text="searchQuery"></span>"
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
<template x-if="!searchLoading && searchResults.length === 0 && searchQuery.length >= 2">
|
||||
<div class="px-4 py-3 text-sm text-gray-400">No results for "<span x-text="searchQuery"></span>"</div>
|
||||
</template>
|
||||
<template x-for="group in searchResults" :key="group.type">
|
||||
<div>
|
||||
<div class="px-4 py-1.5 text-xs font-bold text-gray-400 uppercase tracking-wide bg-pink-50/60 sticky top-0"
|
||||
x-text="group.label"></div>
|
||||
<template x-for="item in group.items" :key="item.url">
|
||||
<a :href="item.url"
|
||||
class="flex items-center gap-3 px-4 py-2.5 hover:bg-pink-50 transition-colors"
|
||||
@click="closeSearch()">
|
||||
<span class="text-lg shrink-0" x-text="item.icon"></span>
|
||||
<div class="min-w-0">
|
||||
<div class="text-sm font-semibold text-gray-700 truncate" x-text="item.title"></div>
|
||||
<div class="text-xs text-gray-400 truncate" x-text="item.subtitle"></div>
|
||||
</div>
|
||||
</a>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<div class="border-t border-pink-50 px-4 py-2">
|
||||
<a :href="'/search?q=' + encodeURIComponent(searchQuery)"
|
||||
class="text-xs text-pink-500 hover:text-pink-700 font-medium flex items-center gap-1"
|
||||
@click="closeSearch()">
|
||||
🔍 See all results for "<span x-text="searchQuery"></span>"
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Right actions --}}
|
||||
<div class="flex items-center gap-2 shrink-0">
|
||||
{{-- Search toggle --}}
|
||||
<button
|
||||
@click="toggleSearch()"
|
||||
class="w-8 h-8 lg:w-9 lg:h-9 rounded-full flex items-center justify-center hover:bg-pink-50 transition-colors text-gray-500 hover:text-pink-500"
|
||||
:title="searchOpen ? 'Close search' : 'Search'"
|
||||
aria-label="Toggle search"
|
||||
>
|
||||
<span x-text="searchOpen ? '✕' : '🔍'" class="text-sm lg:text-base"></span>
|
||||
</button>
|
||||
{{-- Right actions --}}
|
||||
<div class="flex items-center gap-2 shrink-0">
|
||||
{{-- Search toggle --}}
|
||||
<button @click="toggleSearch()"
|
||||
class="w-8 h-8 lg:w-9 lg:h-9 rounded-full flex items-center justify-center hover:bg-pink-50 transition-colors text-gray-500 hover:text-pink-500"
|
||||
:title="searchOpen ? 'Close search' : 'Search'" aria-label="Toggle search">
|
||||
<span x-text="searchOpen ? '✕' : '🔍'" class="text-sm lg:text-base"></span>
|
||||
</button>
|
||||
|
||||
<!--
|
||||
<!--
|
||||
{{-- Avatar --}}
|
||||
<div class="w-8 h-8 lg:w-9 lg:h-9 rounded-full flex items-center justify-center text-white font-bold text-xs lg:text-sm shadow-sm"
|
||||
style="background: linear-gradient(135deg, #FFB7C5, #E8D5F5);">
|
||||
FUN
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{-- ── Flash Messages ───────────────────────────────────── --}}
|
||||
@if(session('success'))
|
||||
<div id="flash-message"
|
||||
class="mx-4 lg:mx-8 mt-4 flex items-center gap-3 bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded-2xl shadow-sm">
|
||||
<span class="text-lg">✅</span>
|
||||
<span class="text-sm font-medium">{{ session('success') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
{{-- ── Flash Messages ───────────────────────────────────── --}}
|
||||
@if(session('success'))
|
||||
<div id="flash-message"
|
||||
class="mx-4 lg:mx-8 mt-4 flex items-center gap-3 bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded-2xl shadow-sm">
|
||||
<span class="text-lg">✅</span>
|
||||
<span class="text-sm font-medium">{{ session('success') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(session('error'))
|
||||
<div id="flash-message"
|
||||
class="mx-4 lg:mx-8 mt-4 flex items-center gap-3 bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-2xl shadow-sm">
|
||||
<span class="text-lg">❌</span>
|
||||
<span class="text-sm font-medium">{{ session('error') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
@if(session('error'))
|
||||
<div id="flash-message"
|
||||
class="mx-4 lg:mx-8 mt-4 flex items-center gap-3 bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-2xl shadow-sm">
|
||||
<span class="text-lg">❌</span>
|
||||
<span class="text-sm font-medium">{{ session('error') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- ── Page Content ─────────────────────────────────────── --}}
|
||||
<main class="flex-1 p-4 lg:p-8 overflow-x-hidden">
|
||||
@yield('content')
|
||||
</main>
|
||||
{{-- ── Page Content ─────────────────────────────────────── --}}
|
||||
<main class="flex-1 p-4 lg:p-8 overflow-x-hidden">
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stack('scripts')
|
||||
@stack('scripts')
|
||||
|
||||
<script>
|
||||
function appShell() {
|
||||
return {
|
||||
sidebarOpen: false,
|
||||
searchOpen: false,
|
||||
searchQuery: '',
|
||||
searchResults: [],
|
||||
searchLoading: false,
|
||||
_searchTimer: null,
|
||||
<script>
|
||||
function appShell() {
|
||||
return {
|
||||
sidebarOpen: false,
|
||||
searchOpen: false,
|
||||
searchQuery: '',
|
||||
searchResults: [],
|
||||
searchLoading: false,
|
||||
_searchTimer: null,
|
||||
|
||||
toggleSearch() {
|
||||
this.searchOpen = !this.searchOpen;
|
||||
if (this.searchOpen) {
|
||||
this.$nextTick(() => this.$refs.searchInput?.focus());
|
||||
} else {
|
||||
this.searchQuery = '';
|
||||
this.searchResults = [];
|
||||
}
|
||||
},
|
||||
toggleSearch() {
|
||||
this.searchOpen = !this.searchOpen;
|
||||
if (this.searchOpen) {
|
||||
this.$nextTick(() => this.$refs.searchInput?.focus());
|
||||
} else {
|
||||
this.searchQuery = '';
|
||||
this.searchResults = [];
|
||||
}
|
||||
},
|
||||
|
||||
closeSearch() {
|
||||
this.searchOpen = false;
|
||||
this.searchQuery = '';
|
||||
this.searchResults = [];
|
||||
},
|
||||
closeSearch() {
|
||||
this.searchOpen = false;
|
||||
this.searchQuery = '';
|
||||
this.searchResults = [];
|
||||
},
|
||||
|
||||
async doSearch() {
|
||||
if (this.searchQuery.length < 2) { this.searchResults = []; return; }
|
||||
this.searchLoading = true;
|
||||
try {
|
||||
const res = await fetch(`/search/quick?q=${encodeURIComponent(this.searchQuery)}`, {
|
||||
headers: { 'X-Requested-With': 'XMLHttpRequest' }
|
||||
});
|
||||
this.searchResults = await res.json();
|
||||
} catch { this.searchResults = []; }
|
||||
this.searchLoading = false;
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
async doSearch() {
|
||||
if (this.searchQuery.length < 2) { this.searchResults = []; return; }
|
||||
this.searchLoading = true;
|
||||
try {
|
||||
const res = await fetch(`/search/quick?q=${encodeURIComponent(this.searchQuery)}`, {
|
||||
headers: { 'X-Requested-With': 'XMLHttpRequest' }
|
||||
});
|
||||
this.searchResults = await res.json();
|
||||
} catch { this.searchResults = []; }
|
||||
this.searchLoading = false;
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,117 +1,293 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Rate Card — {{ $profile->owner_name }}</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'Nunito', sans-serif; background: {{ $profile->bg_color }}; color: {{ $profile->text_color }}; padding: 40px 20px; }
|
||||
.container { max-width: 820px; margin: 0 auto; }
|
||||
.header { text-align: center; margin-bottom: 48px; }
|
||||
.logo-img { max-height: 100px; max-width: 200px; margin: 0 auto 16px; display: block; border-radius: 16px; }
|
||||
.title { font-size: 32px; font-weight: 900; color: {{ $profile->accent_color }}; }
|
||||
.tagline { color: #9CA3AF; margin-top: 6px; font-size: 14px; }
|
||||
.contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Nunito', sans-serif;
|
||||
background:
|
||||
{{ $profile->bg_color }}
|
||||
;
|
||||
color:
|
||||
{{ $profile->text_color }}
|
||||
;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
.logo-img {
|
||||
max-height: 100px;
|
||||
max-width: 200px;
|
||||
margin: 0 auto 16px;
|
||||
display: block;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 32px;
|
||||
font-weight: 900;
|
||||
color:
|
||||
{{ $profile->accent_color }}
|
||||
;
|
||||
}
|
||||
|
||||
.tagline {
|
||||
color: #9CA3AF;
|
||||
margin-top: 6px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.contacts {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px 20px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.contact-pill {
|
||||
display: inline-flex; align-items: center; gap-6px;
|
||||
background: white; border: 1px solid {{ $profile->accent_color }}44;
|
||||
border-radius: 99px; padding: 6px 14px; font-size: 12px; color: {{ $profile->text_color }};
|
||||
text-decoration: none; transition: background 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap-6px;
|
||||
background: white;
|
||||
border: 1px solid
|
||||
{{ $profile->accent_color }}
|
||||
44;
|
||||
border-radius: 99px;
|
||||
padding: 6px 14px;
|
||||
font-size: 12px;
|
||||
color:
|
||||
{{ $profile->text_color }}
|
||||
;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.contact-pill:hover { background: {{ $profile->accent_color }}18; }
|
||||
.platform-section { margin-bottom: 32px; }
|
||||
.platform-title { font-size: 18px; font-weight: 800; color: {{ $profile->text_color }}; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
|
||||
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
|
||||
.card { background: white; border-radius: 24px; padding: 20px; border: 1px solid {{ $profile->accent_color }}33; box-shadow: 0 2px 8px {{ $profile->accent_color }}22; }
|
||||
.service { font-weight: 700; color: #1F2937; margin-bottom: 6px; }
|
||||
.type { display: inline-block; background: {{ $profile->accent_color }}18; color: {{ $profile->accent_color }}; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
|
||||
.desc { font-size: 12px; color: #9CA3AF; margin-bottom: 12px; line-height: 1.5; }
|
||||
.price { font-size: 22px; font-weight: 900; color: {{ $profile->accent_color }}; }
|
||||
.price-meta { font-size: 11px; color: #D1D5DB; margin-top: 2px; }
|
||||
.negotiable { font-size: 11px; color: #F59E0B; font-weight: 600; }
|
||||
.footer { text-align: center; margin-top: 60px; color: #D1D5DB; font-size: 12px; }
|
||||
|
||||
.contact-pill:hover {
|
||||
background:
|
||||
{{ $profile->accent_color }}
|
||||
18;
|
||||
}
|
||||
|
||||
.platform-section {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.platform-title {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
color:
|
||||
{{ $profile->text_color }}
|
||||
;
|
||||
margin-bottom: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: white;
|
||||
border-radius: 24px;
|
||||
padding: 20px;
|
||||
border: 1px solid
|
||||
{{ $profile->accent_color }}
|
||||
33;
|
||||
box-shadow: 0 2px 8px
|
||||
{{ $profile->accent_color }}
|
||||
22;
|
||||
}
|
||||
|
||||
.service {
|
||||
font-weight: 700;
|
||||
color: #1F2937;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.type {
|
||||
display: inline-block;
|
||||
background:
|
||||
{{ $profile->accent_color }}
|
||||
18;
|
||||
color:
|
||||
{{ $profile->accent_color }}
|
||||
;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
padding: 2px 10px;
|
||||
border-radius: 20px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 12px;
|
||||
color: #9CA3AF;
|
||||
margin-bottom: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.price {
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
color:
|
||||
{{ $profile->accent_color }}
|
||||
;
|
||||
}
|
||||
|
||||
.price-meta {
|
||||
font-size: 11px;
|
||||
color: #D1D5DB;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.negotiable {
|
||||
font-size: 11px;
|
||||
color: #F59E0B;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 60px;
|
||||
color: #D1D5DB;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pdf-btn {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
background: {{ $profile->accent_color }}; color: white;
|
||||
border: none; border-radius: 99px; padding: 10px 24px;
|
||||
font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
text-decoration: none; transition: opacity 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background:
|
||||
{{ $profile->accent_color }}
|
||||
;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 99px;
|
||||
padding: 10px 24px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.pdf-btn:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@media print {
|
||||
body {
|
||||
background: white;
|
||||
}
|
||||
|
||||
.card {
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
.pdf-btn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.pdf-btn:hover { opacity: 0.9; }
|
||||
@media print { body { background: white; } .card { break-inside: avoid; } .pdf-btn { display: none; } }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
@if($profile->logo_path)
|
||||
<img src="{{ route('files.serve-profile-logo') }}" alt="{{ $profile->owner_name }}" class="logo-img">
|
||||
@else
|
||||
<div style="font-size:56px; margin-bottom:12px;">🐱</div>
|
||||
@endif
|
||||
<div class="title">{{ $profile->owner_name }}</div>
|
||||
@if($profile->tagline)
|
||||
<div class="tagline">{{ $profile->tagline }}</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
@if($profile->logo_path)
|
||||
<img src="{{ route('files.serve-profile-logo') }}" alt="{{ $profile->owner_name }}" class="logo-img">
|
||||
@else
|
||||
<div style="font-size:56px; margin-bottom:12px;">🐱</div>
|
||||
@endif
|
||||
<div class="title">{{ $profile->owner_name }}</div>
|
||||
@if($profile->tagline)
|
||||
<div class="tagline">{{ $profile->tagline }}</div>
|
||||
@endif
|
||||
|
||||
<div class="contacts" style="margin-top:14px">
|
||||
@if($profile->whatsappUrl)
|
||||
<a href="{{ $profile->whatsappUrl }}" target="_blank" class="contact-pill">📱 WhatsApp</a>
|
||||
@endif
|
||||
@if($profile->ig_handle)
|
||||
<a href="https://instagram.com/{{ ltrim($profile->ig_handle, '@') }}" target="_blank" class="contact-pill">📸 {{ '@' . ltrim($profile->ig_handle, '@') }}</a>
|
||||
@endif
|
||||
@if($profile->tiktok_handle)
|
||||
<a href="https://tiktok.com/{{ ltrim($profile->tiktok_handle, '@') }}" target="_blank" class="contact-pill">🎵 {{ '@' . ltrim($profile->tiktok_handle, '@') }}</a>
|
||||
@endif
|
||||
@if($profile->youtube_handle)
|
||||
<a href="https://youtube.com/{{ $profile->youtube_handle }}" target="_blank" class="contact-pill">▶️ {{ $profile->youtube_handle }}</a>
|
||||
@endif
|
||||
@if($profile->email)
|
||||
<a href="mailto:{{ $profile->email }}" class="contact-pill">✉️ {{ $profile->email }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@forelse($rateCards as $platform => $cards)
|
||||
<div class="platform-section">
|
||||
<div class="platform-title">
|
||||
<span>{{ $cards->first()->platform_icon }}</span>
|
||||
{{ ucfirst($platform) }}
|
||||
</div>
|
||||
<div class="cards">
|
||||
@foreach($cards as $card)
|
||||
<div class="card">
|
||||
@if($card->content_type)
|
||||
<div class="type">{{ $card->content_type }}</div>
|
||||
@endif
|
||||
<div class="service">{{ $card->service_name }}</div>
|
||||
@if($card->description)
|
||||
<div class="desc">{{ $card->description }}</div>
|
||||
@endif
|
||||
@if($profile->show_prices)
|
||||
<div class="price">{{ $card->formatted_price }}</div>
|
||||
<div class="price-meta">{{ str_replace('_', ' ', $card->price_unit) }}</div>
|
||||
@else
|
||||
<div class="price" style="font-size:16px">On Request</div>
|
||||
@endif
|
||||
@if($card->is_negotiable)
|
||||
<div class="negotiable">✦ Negotiable</div>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="contacts" style="margin-top:14px">
|
||||
@if($profile->whatsappUrl)
|
||||
<a href="{{ $profile->whatsappUrl }}" target="_blank" class="contact-pill">📱 WhatsApp</a>
|
||||
@endif
|
||||
@if($profile->ig_handle)
|
||||
<a href="https://instagram.com/{{ ltrim($profile->ig_handle, '@') }}" target="_blank"
|
||||
class="contact-pill">📸 {{ '@' . ltrim($profile->ig_handle, '@') }}</a>
|
||||
@endif
|
||||
@if($profile->tiktok_handle)
|
||||
<a href="https://tiktok.com/{{ ltrim($profile->tiktok_handle, '@') }}" target="_blank"
|
||||
class="contact-pill">🎵 {{ '@' . ltrim($profile->tiktok_handle, '@') }}</a>
|
||||
@endif
|
||||
@if($profile->youtube_handle)
|
||||
<a href="https://youtube.com/{{ $profile->youtube_handle }}" target="_blank" class="contact-pill">▶️
|
||||
{{ $profile->youtube_handle }}</a>
|
||||
@endif
|
||||
@if($profile->email)
|
||||
<a href="mailto:{{ $profile->email }}" class="contact-pill">✉️ {{ $profile->email }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p style="text-align:center; color:#9CA3AF; padding: 60px 0;">No rate cards published yet.</p>
|
||||
@endforelse
|
||||
|
||||
<div class="footer">
|
||||
{{ $profile->custom_footer ?: 'Prices may vary. Contact for custom packages. 🐾' }}
|
||||
<br>Generated by Cathy's App · {{ now()->format('Y-M-D') }}
|
||||
@forelse($rateCards as $platform => $cards)
|
||||
<div class="platform-section">
|
||||
<div class="platform-title">
|
||||
<span>{{ $cards->first()->platform_icon }}</span>
|
||||
{{ ucfirst($platform) }}
|
||||
</div>
|
||||
<div class="cards">
|
||||
@foreach($cards as $card)
|
||||
<div class="card">
|
||||
@if($card->content_type)
|
||||
<div class="type">{{ $card->content_type }}</div>
|
||||
@endif
|
||||
<div class="service">{{ $card->service_name }}</div>
|
||||
@if($card->description)
|
||||
<div class="desc">{{ $card->description }}</div>
|
||||
@endif
|
||||
@if($profile->show_prices)
|
||||
<div class="price">{{ $card->formatted_price }}</div>
|
||||
<div class="price-meta">{{ str_replace('_', ' ', $card->price_unit) }}</div>
|
||||
@else
|
||||
<div class="price" style="font-size:16px">On Request</div>
|
||||
@endif
|
||||
@if($card->is_negotiable)
|
||||
<div class="negotiable">✦ Negotiable</div>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p style="text-align:center; color:#9CA3AF; padding: 60px 0;">No rate cards published yet.</p>
|
||||
@endforelse
|
||||
|
||||
<div class="footer">
|
||||
{{ $profile->custom_footer ?: 'Prices may vary. Contact for custom packages.' }}
|
||||
<!--<br>Generated by Cathy's App · {{ now()->format('Y-M-D') }}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user