@extends('layouts.crm') @section('title', 'الفرص — CRM — '.config('app.name')) @section('breadcrumb') الرئيسية إدارة العملاء الفرص @endsection @section('content') @php $stageSelectOptions = array_merge( [['value' => '', 'label' => 'الكل']], $stageFilterOptions ?? [] ); @endphp
@if (session('success'))
{{ session('success') }}
@endif

الفرص

{{-- جدول مضغوط بدون تمرير أفقي؛ التفاصيل المالية والتواريخ من عمود الإجراءات → صفحة العرض --}}
@forelse($opportunities as $opportunity) @php $stageLabel = \App\Models\CrmOpportunity::labelForStage($opportunity->stage); $stageBadges = \App\Models\CrmOpportunity::badgeClassesForStage($opportunity->stage); $est = number_format((float) $opportunity->estimated_value, 2); @endphp @empty @endforelse
رقم الفرصة الفرصة العميل المرحلة القيمة المقدرة مسؤول عنها إجراءات
{{ $opportunity->opportunity_number }} {{ $opportunity->title }} @if($opportunity->customer) {{ $opportunity->customer->display_name }} {{ $opportunity->customer->code }} @else — @endif {{ $stageLabel }} {{ $est }} {{ $opportunity->assignedUser?->name ?: '—' }}
لا توجد بيانات
@if($opportunities->hasPages())
{{ $opportunities->links() }}
@endif
@endsection