vendor_id)->first(); if(isset($wallet)==false){ \Illuminate\Support\Facades\DB::table('restaurant_wallets')->insert([ 'vendor_id'=>$restaurant->vendor_id, 'created_at'=>now(), 'updated_at'=>now() ]); $wallet = \App\Models\RestaurantWallet::where('vendor_id',$restaurant->vendor_id)->first(); } ?> @if (isset($rest_subscription) && $rest_subscription->package_id == $package->id) @else @endif