@if (auth('admin')->check()) @php $roles = auth('admin')->user()->role->roles ?? []; @endphp @if (in_array('Common', $roles))
  • @php $messages = \Modules\Contactus\Models\Contactus::unseen()->latest()->take(7); @endphp @if ($messages->count()) {{ $messages->count() }} @endif
    @lang('Contactus messages')
    @forelse($messages->get() as $message)

    {{ $message->name }}

    {{ mb_substr($message->message, 0, 50) }} ....

    {{ $message->created_at }}

    @empty

    @lang('No messages to be read')

    @endforelse
    @lang('Show all')
  • @endif @endif
  • @php $notifications = auth('admin')->user()->unreadnotifications()->latest(); @endphp @if ($notifications->count()) {{ $notifications->count() }} @endif
    @lang('Notification messages') @forelse($notifications->get() as $notify)

    {{ $notify->data['title'] }}

    {{ $notify->data['message'] }}

    {{ $notify->created_at->diffforhumans() }}

    @empty

    @lang('No notifications to be read')

    @endforelse
    @lang('Show all')
  • @if(app()->getLocale() == 'ar') English @else العربية @endif