@php $columns = $this->getColumns(); $stats = $this->getStats(); $detail = $this->getOpenCardDetail(); @endphp
{{-- TOPBAR --}}
Pipeline
⬇ Export
{{-- STAT STRIP --}}
{{ $stats['active'] }} Total deals active
{{ number_format($stats['pipeline_mdl'], 0, '.', ' ') }} MDL pipeline total
{{ number_format($stats['closed_today_mdl'], 0, '.', ' ') }} MDL închise azi
{{ $stats['need_action'] }} Necesită acțiune
{{ $stats['conversion_rate'] }}% Rata conversie
{{ $stats['overdue'] }} Depășit termen
{{-- FILTER BAR --}}
📋 Kanban
≡ Listă
Toate
👤 Ale mele
⚠ Urgente
📅 Azi
📅 {{ now()->locale('ro')->isoFormat('MMMM YYYY') }}
Pipeline: {{ number_format($stats['pipeline_mdl'], 0, '.', ' ') }} MDL · {{ $stats['active'] }} deals
{{-- KANBAN --}}
@foreach ($columns as $colKey => $col)
{{ $col['label'] }}
{{ $col['count'] }}
{{ number_format($col['sum'], 0, '.', ' ') }} MDL
@forelse ($col['cards'] as $card)
@if ($card['urgent'])
@endif
@if ($colKey === 'request') {{-- 📅 calendar-plus / 📞 phone / ⋮ --}} 📅 @if (!empty($card['phone']))📞@endif @elseif ($colKey === 'quote') {{-- 📅 / 💬 message / ⋮ --}} 📅 @if (!empty($card['phone']))💬@endif @elseif ($colKey === 'scheduled') {{-- 📄+ file-plus (start WO) / 💬 / ⋮ --}} 📄 @if (!empty($card['phone']))💬@endif @elseif ($colKey === 'in_work') {{-- 👁 eye / 💬 / ⋮ --}} 👁 @if (!empty($card['phone']))💬@endif @elseif ($colKey === 'ready') {{-- 💰 cash / 💬 / ⋮ --}} 💰 @if (!empty($card['phone']))📞@endif @endif
{{ $card['code'] }}
{{ $card['subject'] }}
🚗 {{ $card['plate'] ?: '—' }} · {{ $card['client_name'] }}
@if (!empty($card['tags']))
@foreach ($card['tags'] as $tag) {{ $tag['label'] }} @endforeach
@endif @if (!is_null($card['progress_pct']))
@endif @if ($card['time_text'] && $colKey !== 'paid')
@if ($card['time_icon']==='check')✓@elseif($card['time_icon']==='phone')📞@elseif($card['time_icon']==='message')💬@else⏱@endif {{ $card['time_text'] }}
@endif
@empty
Gol — trage un card aici
@endforelse @if ($colKey !== 'paid') @endif
@endforeach
{{-- LIST VIEW --}}
@foreach (['#', 'Subiect', 'Client', 'Auto', 'Etapă', 'Sumă', 'Responsabil', 'Stare timp'] as $h) @endforeach @foreach ($columns as $colKey => $col) @foreach ($col['cards'] as $card) @endforeach @endforeach
{{ $h }}
{{ $card['code'] }} {{ $card['subject'] }} {{ $card['client_name'] }} {{ $card['plate'] }} {{ $col['label'] }} {{ $card['amount'] > 0 ? number_format($card['amount'], 0, '.', ' ') . ' MDL' : '—' }} {{ $card['assignee']['name'] }} {{ $card['time_text'] }}
{{-- PANEL: NEW FORM mode --}}
@if ($showNewForm)
Cerere nouă
Va fi adăugată în Cerere nouă
@endif
{{-- PANEL: DETAIL mode --}}
@if ($detail && !$showNewForm)
{{ $detail['title'] }}
{{ $detail['subtitle'] }}
Progres etapă
@foreach ($detail['stages'] as $st)
@endforeach
@foreach ($detail['stages'] as $st)
{{ $st['label'] }}
@endforeach
@foreach ($detail['fields'] as $label => $value) @if ($value)
{{ $label }}
{{ $value }}
@endif @endforeach
@if ($detail['note'])
Notițe / Reclamație
{{ $detail['note'] }}
@endif
@if (!empty($detail['wo']))
Fișă de lucru
{{ $detail['wo']['number'] }} · {{ $detail['wo']['status_label'] }}
@if (!is_null($detail['wo']['progress_pct'])){{ $detail['wo']['progress_pct'] }}% finalizat @endif @if ($detail['wo']['eta']) · ETA {{ $detail['wo']['eta'] }} @endif
↗ Deschide
@if (!empty($detail['wo']['has_pending_approval']))
⚠ Necesită aprobare client
Deschide fișa pentru aprobare lucrare/piesă.
@endif
@endif @if (!empty($detail['activity']))
Activitate recentă
@foreach ($detail['activity'] as $a)
{{ $a['text'] }}
{{ $a['time'] }}
@endforeach
@endif
Acțiuni rapide
@if (!empty($detail['phone'])) 💚 WhatsApp 📞 Sună 💬 SMS @endif @if (!empty($detail['wo']['tracking_url'])) 🔗 Link tracking @endif
@php $kind = explode(':', $openCardKey)[0] ?? '' @endphp @if (in_array($kind, ['lead', 'deal']) && empty($detail['wo'])) 📅 Programează ↗ Deschide deal @elseif ($kind === 'wo') 📅 Calendar ↗ Deschide Fișă @endif
@endif