@extends('admin.layouts.app') @section('title', __('drip.title')) @section('header', __('drip.title')) @section('breadcrumb') / {{ __('drip.title') }} @endsection @section('header-actions') @endsection @section('content')
@if($campaigns->isEmpty())

{{ __('drip.empty') }}

@else @foreach($campaigns as $drip) @php $statusStyle = match($drip->status) { 'active' => 'background:rgba(10,179,156,0.1);color:#0ab39c;', 'paused' => 'background:rgba(245,158,11,0.1);color:#d97706;', default => 'background:#f3f4f6;color:#6b7280;', }; $statusLabel = __('drip.status_' . $drip->status); @endphp @endforeach
{{ __('drip.name_label') }} {{ __('drip.trigger_label') }} {{ __('drip.steps_title') }} {{ __('drip.stat_active') }} {{ __('drip.stat_completed') }} {{ __('common.status') }}
{{ $drip->name }} @if($drip->description)

{{ Str::limit($drip->description, 60) }}

@endif
@if($drip->trigger_type === 'group_join') {{ __('drip.trigger_group_join') }} @if($drip->triggerGroup) {{ $drip->triggerGroup->name }} @endif @elseif($drip->trigger_type === 'tag_added') {{ __('drip.trigger_tag_added') }} @if($drip->triggerTag) {{ $drip->triggerTag->name }} @endif @else {{ __('drip.trigger_manual') }} @endif {{ $drip->steps_count }} {{ $drip->active_count }} {{ $drip->enrollments_count - $drip->active_count }} {{ $statusLabel }} {{ __('common.view') }}
@csrf @method('DELETE')
@endif
{{-- CREATE MODAL --}} @endsection @push('scripts') @endpush