@php $cust_id = App\Models\Customer::where('user_id', Auth::user()->id)->pluck('id')->first(); $check_request = App\Models\BookDemoSession::where('customer_id', $cust_id)->first(); $check_contract = App\Models\Contract::where('customer_id', $cust_id)->first(); @endphp