CRM
Manage contacts, deals, activities and tasks.
| Name |
Email |
Phone |
Company |
Type |
Actions |
@forelse($contacts ?? [] as $contact)
| {{ $contact->name }} |
{{ $contact->email }} |
{{ $contact->phone }} |
{{ $contact->company }} |
{{ ucfirst($contact->type) }}
|
@if(auth()->user()->hasPermission($currentBusiness->id, 'can_edit_crm'))
@endif
|
@empty
| No contacts found. |
@endforelse
| Deal |
Contact |
Stage |
Value |
Probability |
Actions |
@forelse($deals ?? [] as $deal)
| {{ $deal->title }} |
{{ $deal->contact->name ?? 'N/A' }} |
@php
$stageColors = ['lead' => 'bg-gray-100 text-gray-700', 'qualified' => 'bg-blue-100 text-blue-700', 'proposal' => 'bg-yellow-100 text-yellow-700', 'negotiation' => 'bg-purple-100 text-purple-700', 'won' => 'bg-green-100 text-green-700', 'lost' => 'bg-red-100 text-red-700'];
@endphp
{{ ucfirst($deal->stage) }}
|
{{ $currentBusiness->currency_symbol }}{{ number_format($deal->value, 2) }} |
{{ $deal->probability }}% |
@if(auth()->user()->hasPermission($currentBusiness->id, 'can_edit_crm'))
@endif
|
@empty
| No deals found. |
@endforelse
@forelse($activities ?? [] as $activity)
@if($activity->type === 'call')
@elseif($activity->type === 'email')
@else
@endif
{{ $activity->title }}
{{ $activity->description }}
{{ $activity->created_at->diffForHumans() }} {{ $activity->contact ? '- ' . $activity->contact->name : '' }}
@empty
@endforelse
| Task |
Status |
Priority |
Due Date |
Assigned To |
Actions |
@forelse($tasks ?? [] as $task)
| {{ $task->title }} |
{{ ucfirst(str_replace('_', ' ', $task->status)) }}
|
{{ ucfirst($task->priority) }}
|
{{ $task->due_date ? $task->due_date->format('d M Y') : '-' }} |
{{ $task->assignee ?? '-' }} |
@if(auth()->user()->hasPermission($currentBusiness->id, 'can_edit_crm'))
@endif
|
@empty
| No tasks found. |
@endforelse
@endsection