@if ($crud->hasAccess('create')) @php $quotation = App\Models\Quotation::where('lead_id', $entry->getKey())->first(); @endphp @if ($quotation) @php Alert::error('Hehehe')->flash(); @endphp @else Add to Quotation @endif @endif