@extends('layouts.app') @section('title', 'Pipeline Kanban') @section('content')
@foreach($stages as $stage)
{{-- Column header --}}
{{ $stage->name }}
{{ $stage->deals->count() }}
{{-- Summary nilai --}}
Total: Rp {{ number_format($stage->deals->sum('value') / 1000000, 1) }}jt
{{-- Cards drop zone --}}
@foreach($stage->deals as $deal)
{{-- Deal title --}} {{ $deal->title }} @if($deal->is_overdue) @endif {{-- Contact --}} @if($deal->contact)
{{ strtoupper(substr($deal->contact->name,0,2)) }}
{{ $deal->contact->name }}
@endif {{-- Footer --}}
{{ $deal->formatted_value }}
{{ $deal->priority_label }} @if($deal->expected_close) {{ $deal->expected_close->locale('id')->isoFormat('D MMM') }} @endif
{{-- Assigned user avatar --}} @if($deal->user)
{{ $deal->user->initials }}
@endif
@endforeach @if($stage->deals->isEmpty())
Tidak ada deal
@endif
@endforeach
{{-- Move indicator toast --}} @endsection @push('scripts') @endpush