@section('title') Buckets @endsection @section('breadcrumbs') {{ Breadcrumbs::render('buckets') }} @endsection
@csrf
Clear
@forelse ($data as $bucket) @php $contactTotal = $bucket->total_contacts; $contactAssigned = $bucket->assigned_contacts; $contactDuplicate = $bucket->duplicate_contacts; $bucketPercent = 0; $bucketColor = 'danger'; if($contactTotal > 0): $bucketPercent = 100; if ($contactAssigned > 0): $bucketPercent = number_format($bucketPercent - (($contactAssigned * 100) / $contactTotal), 2); endif; endif; $bucketPercentRound = round($bucketPercent); if($bucketPercentRound > 10) $bucketColor = 'orange'; if($bucketPercentRound > 20) $bucketColor = 'yellow'; if($bucketPercentRound > 30) $bucketColor = 'fuchsia'; if($bucketPercentRound > 40) $bucketColor = 'purple'; if($bucketPercentRound > 50) $bucketColor = 'blue'; if($bucketPercentRound > 60) $bucketColor = 'aqua'; if($bucketPercentRound > 70) $bucketColor = 'teal'; if($bucketPercentRound > 80) $bucketColor = 'green'; if($bucketPercentRound > 90) $bucketColor = 'lime'; @endphp @empty @endforelse
Bucket Progress @if($data && count($data) > 0) Pause Bucket @endif Actions
@php $bucketStatus = $bucket->status == 0 ? 'text-white bg-danger' : 'bg-light-' . $bucketColor; @endphp {{ substr(ucfirst($bucket->bucket_name), 0, 1) }}
{{ $bucket->bucket_name }}
Created At: {{ formatDate($bucket->created_at, "dt", "default") }}{{ $bucket->last_attempt ? ' , Last Attempt: ' . formatDate($bucket->last_attempt, "dt", "default") : '' }}
bucket_{{ $bucket->bucket_id }}
is_pause == 1 ? 'checked' : '' }} />
Actions
No data found.
{!! $data->onEachSide(3)->links() !!}
@push('scripts') @endpush