@php
$realtime_views_config = array_walk_alt(config('app.realtime_views', []), function(&$val, $key)
{
if(in_array($key, ['website', 'product']))
{
unset($val['fake']);
}
return $val;
})
@endphp
'use strict';
window.props = {
appName: '{{ config('app.name') }}',
itemId: null,
product: {},
products: {},
direction: '{{ locale_direction() }}',
routes: {
checkout: '{{ route('home.checkout') }}',
products: '{{ route('home.products.category', '') }}',
pages: '{{ route('home.page', '') }}',
payment: '{{ route('home.checkout.payment') }}',
coupon: '{{ route('home.checkout.validate_coupon') }}',
notifRead: '{{ route('home.notifications.read') }}',
addToCartAsyncRoute: '{{ route('home.add_to_cart') }}',
subscriptionPayment: '{{ config('app.subscriptions.enabled') ? route('home.subscription.payment') : '' }}',
},
userMessage: '{{ session('user_message') }}',
currentRouteName: '',
location: window.location,
transactionMsg: '{{ session('order_completed') }}',
paymentProcessors:
Fatal error: Uncaught Error: Call to undefined function config() in /home/uuifcybr/public_html/script/resources/views/components/js_props.blade.php:36
Stack trace:
#0 {main}
thrown in /home/uuifcybr/public_html/script/resources/views/components/js_props.blade.php on line 36