@php $currentRoute = Route::currentRouteName(); $noAbsoluteRoutes = ['movie-details', 'tvshow-details', 'episode-details', 'video-detail','pay-per-view.paymentform','pay-per-view']; @endphp @include('frontend::components.partials.logo') @include('frontend::components.partials.horizontal-nav') {{-- @if(auth()->check() && auth()->user()->unreadNotifications()->count() > 0) {{ auth()->user()->unreadNotifications()->count() }} @endif {{ __('messages.title_list') }} @if(auth()->check()) @php $notifications = auth()->user()->notifications()->orderBy('created_at', 'desc')->take(5)->get(); $timezone = App\Models\Setting::where('name', 'default_time_zone')->value('val') ?? 'UTC'; @endphp @if(isset($notifications) && count($notifications) > 0) @foreach($notifications as $notification) @php $notification->created_at = $notification->created_at->setTimezone($timezone); $notification->updated_at = $notification->updated_at->setTimezone($timezone); $notification_type = ucwords(str_replace('_', ' ', $notification->data['data']['notification_type'])) . '!'; @endphp @if($notification->data['data']['notification_group']=='subscription') {{ $notification_type }} {{ strtoupper(substr($notification->data['data']['username'], 0, 1)) }} @if($notification->data['data']['notification_type']=='new_subscription') {{ __('messages.new') }} {{ $notification->data['data']['name'] ?? __('messages.ultimate_plan') }} {{ __('messages.purchase_successfully') }} {{ $notification->created_at->format('d/m/Y') }} {{ $notification->created_at->format('h:i A') }} @endif @if($notification->data['data']['notification_type']=='cancle_subscription') {{ __('messages.subscription_cancelled_by') }} {{ ($notification->data['data']['username']) }} {{ $notification->created_at->format('d/m/Y') }} {{ $notification->created_at->format('h:i A') }} @endif @endif @endforeach @else {{ __('messages.no_notification') }} @endif @else {{ __('Please login to view notifications') }} @endif @if(auth()->check() && isset($notifications) && count($notifications) > 0) @endif --}} {{ strtoupper(App::getLocale()) }} @foreach (config('app.available_locales') as $locale => $title) {{ $title }} @endforeach @if(auth()->check()) @if(auth()->user()->user_type == 'user') @if(auth()->user()->is_subscribe == 0) {{__('frontend.subscribe')}} @else {{__('frontend.upgrade')}} @endif @endif {{-- @php $unreadCount = auth()->user()->unreadNotifications()->count(); @endphp @if($unreadCount > 0) {{ $unreadCount }} unread notifications @endif {{ __('Notifications') }} @forelse(auth()->user()->notifications->take(5) as $notification) {{ $notification->data['message'] ?? 'New notification' }} {{ $notification->created_at->diffForHumans() }} @empty {{ __('No new notifications') }} @endforelse {{ __('View all') }} --}} {{ auth()->user()->full_name ?? default_user_name() }} {{ auth()->user()->email }} {{__('frontend.my_watchlist')}} @if(getCurrentProfileSession('is_child_profile') == 0) {{ __('frontend.security_control') }} user()->is_parental_lock_enable ? 'checked' : '' }} > @if(empty(auth()->user()->pin)) {{ __('frontend.set_pin') }} @else {{ __('frontend.change_pins') }} @endif @endif {{__('messages.lbl_unlock_videos')}} {{__('frontend.profile')}} {{__('frontend.subscription_plan')}} {{__('frontend.account_setting')}} {{__('frontend.subscription_history')}} {{__('frontend.pay_per_view_transactions')}} {{__('frontend.logout')}} @else {{__('frontend.login')}} @endif
{{ __('messages.new') }} {{ $notification->data['data']['name'] ?? __('messages.ultimate_plan') }} {{ __('messages.purchase_successfully') }}
{{ __('messages.subscription_cancelled_by') }} {{ ($notification->data['data']['username']) }}