@extends('layouts.admin')
@section('content')
@php
$authUser = auth()->user();
$canDeleteLeads = $authUser->hasRole('super-admin') || $authUser->hasPermission('admin.leads.destroy');
$canSeeLeadReport = $authUser->hasRole('super-admin') || $authUser->hasPermission('admin.leads.report');
@endphp
| Code |
Name |
Source |
Status |
Assigned |
Follow-up |
Action |
@foreach ($items as $item)
| {{ $item->lead_code }} |
{{ $item->full_name }} |
{{ $item->source }} |
{{ $item->status }} |
{{ $item->assignedEmployee?->name }} |
{{ optional($item->follow_up_date)->format('d M Y') }} |
ViewEdit
@if ($canDeleteLeads)
@endif
|
@endforeach
@endsection
@push('scripts')
@endpush