@extends('layouts.crm') @section('title', $opportunity->title.' — الفرص — '.config('app.name')) @section('breadcrumb') الرئيسية إدارة العملاء الفرص {{ $opportunity->opportunity_number }} @endsection @section('content') @php $stageLabel = \App\Models\CrmOpportunity::labelForStage($opportunity->stage); $stageBadge = \App\Models\CrmOpportunity::badgeClassesForStage($opportunity->stage); $closeStr = $opportunity->expected_closing_date ? $opportunity->expected_closing_date->timezone(config('app.timezone'))->format('Y/m/d') : '—'; $nextFollowStr = $opportunity->next_follow_up_date ? $opportunity->next_follow_up_date->timezone(config('app.timezone'))->format('Y/m/d') : '—'; @endphp
@if (session('success'))
{{ session('success') }}
@endif

{{ $opportunity->opportunity_number }}

{{ $opportunity->title }}

{{ $stageLabel }}

القيم والاحتمالية

{{ number_format((float) $opportunity->estimated_value, 2) }}
{{ $opportunity->probability }}%
{{ number_format((float) $opportunity->weighted_value, 2) }}
{{ $closeStr }}

العميل والمتابعة

@if($opportunity->customer) {{ $opportunity->customer->display_name }} {{ $opportunity->customer->code }} @else — @endif
{{ $opportunity->assignedUser?->name ?: '—' }}
تاريخ الإنشاء
{{ $opportunity->created_at?->timezone(config('app.timezone'))->format('Y/m/d H:i') ?: '—' }}
آخر تحديث
{{ $opportunity->updated_at?->timezone(config('app.timezone'))->format('Y/m/d H:i') ?: '—' }}

الوصف والمعلومات الإضافية

{{ filled($opportunity->description) ? $opportunity->description : '—' }}
{{ $nextFollowStr }}
{{ filled($opportunity->competitor_notes) ? $opportunity->competitor_notes : '—' }}
@endsection