Commit f1f30cc6 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Add financial quick-links: invoices, POS history, expenses list

All financial-related pages are now reachable from the Financial Overview
via quick-action buttons with proper permission gates.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent eb96c326
......@@ -24,8 +24,8 @@
</div>
{{-- Quick Actions --}}
@can('expenses.create')
<div class="flex flex-wrap gap-2 mb-4">
@can('expenses.create')
<a href="{{ route('expenses.create') }}" wire:navigate
class="inline-flex items-center gap-1.5 px-3 py-2 bg-red-50 border border-red-200 text-red-700 rounded-lg hover:bg-red-100 text-xs font-medium transition-colors">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
......@@ -40,8 +40,35 @@ class="inline-flex items-center gap-1.5 px-3 py-2 bg-emerald-50 border border-em
</svg>
{{ __('تسجيل إيراد خارجي') }}
</a>
</div>
@endcan
@can('invoices.list')
<a href="{{ route('invoices.list') }}" wire:navigate
class="inline-flex items-center gap-1.5 px-3 py-2 bg-blue-50 border border-blue-200 text-blue-700 rounded-lg hover:bg-blue-100 text-xs font-medium transition-colors">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
{{ __('الفواتير') }}
</a>
@endcan
@can('pos.list')
<a href="{{ route('pos.history') }}" wire:navigate
class="inline-flex items-center gap-1.5 px-3 py-2 bg-purple-50 border border-purple-200 text-purple-700 rounded-lg hover:bg-purple-100 text-xs font-medium transition-colors">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"/>
</svg>
{{ __('سجل المبيعات (الإيصالات)') }}
</a>
@endcan
@can('expenses.create')
<a href="{{ route('expenses.list') }}" wire:navigate
class="inline-flex items-center gap-1.5 px-3 py-2 bg-amber-50 border border-amber-200 text-amber-700 rounded-lg hover:bg-amber-100 text-xs font-medium transition-colors">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"/>
</svg>
{{ __('سجل المصروفات') }}
</a>
@endcan
</div>
{{-- Loading overlay --}}
<div wire:loading.class="opacity-50 pointer-events-none" class="transition-opacity">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment