@extends('admin.layouts.layout') @section('container_content') @include('admin.layouts.menu') {{ $adminNotificationsCount }} {{ __('dashboard.notifications_count', ['count' => $adminNotificationsCount]) }} @if($adminNotifications->count()) @foreach($adminNotifications as $notification) @if($notification->type_key == 'plan') {{ $notification->details['message'] ?? $notification->descriptions[0]->message ?? "" }} {{ $notification->created_at->diffForHumans() }} @elseif($notification->type_key == 'product') {{ $notification->details['message'] ?? $notification->descriptions[0]->message ?? "" }} {{ $notification->created_at->diffForHumans() }} @endif @endforeach @else {{ __('dashboard.no_notifications') }} @endif {{ __('dashboard.see_all_notifications') }} @if(getCurrentLocale() == 'ar') {{__('main.another_lang')}} @endif @if(getCurrentLocale() == 'en') {{__('main.another_lang')}} @endif {{ __('dashboard.logout') }} @csrf @if(count($errors)) @foreach($errors->all() as $error) {{$error}} @endforeach @endif @if (session('message')) {{session('message')}} @endif @if (session('error')) {{session('error')}} @endif @yield('content') @endsection @section('container_js') {{-- --}} @yield('inner_js') @stack('stack_scripts') @endsection