@extends('user.layout') @php $userDefaultLang = \App\Models\User\Language::where([ ['user_id',\Illuminate\Support\Facades\Auth::id()], ['is_default', 1] ])->first(); $userLanguages = \App\Models\User\Language::where('user_id',\Illuminate\Support\Facades\Auth::id())->get(); @endphp @section('content')
{{__('Counter Informations')}}
@if(!is_null($userDefaultLang)) @if (!empty($userLanguages)) @endif @endif
@if(!is_null($userDefaultLang)) {{__('Add Counter')}} @endif
@if(is_null($userDefaultLang))

{{__('NO LANGUAGE FOUND')}}

@else @if (count($counterInformations) == 0)

{{__('NO COUNTER INFORMATION FOUND')}}

@else
@foreach ($counterInformations as $key => $counterInformation) @endforeach
{{__('Icon')}} {{__('Title')}} {{__('Count')}} {{__('Actions')}}
{{strlen($counterInformation->title) > 30 ? mb_substr($counterInformation->title, 0, 30, 'UTF-8') . '...' : $counterInformation->title}} {{$counterInformation->count}} {{__('Edit')}}
@csrf
@endif @endif
@endsection