@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(app()->getLocale())->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