{{ $loop->iteration }} |
@if(\App\Models\User::where('id', Auth::user()->id)->first()->lang == "mk")
{{ Str::words($blog->title, 7, '... ') }}
@endif
@if(\App\Models\User::where('id', Auth::user()->id)->first()->lang == "en")
@if($blog->title_eng != null)
{{ Str::words($blog->title_eng, 7, '... ') }}
@else
{{ Str::words($blog->title, 7, '... ') }}
@endif
@endif
@if(\App\Models\User::where('id', Auth::user()->id)->first()->lang == "al")
@if($blog->title_alb != null)
{{ Str::words($blog->title_alb, 7, '... ') }}
@else
{{ Str::words($blog->title, 7, '... ') }}
@endif
@endif
|
|
{{ Str::words($blog->keywords, 5,'... ') }} |
@if(\App\Models\User::where('id', Auth::user()->id)->first()->lang == "mk")
{{ Str::words($blog->description, 7, '... ') }}
@endif
@if(\App\Models\User::where('id', Auth::user()->id)->first()->lang == "en")
@if($blog->description_eng != null)
{{ Str::words($blog->description_eng, 7, '... ') }}
@else
{{ Str::words($blog->description, 7, '... ') }}
@endif
@endif
@if(\App\Models\User::where('id', Auth::user()->id)->first()->lang == "al")
@if($blog->description_alb != null)
{{ Str::words($blog->description_alb, 7, '... ') }}
@else
{{ Str::words($blog->description, 7, '... ') }}
@endif
@endif
|
{{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $blog->created_at)->format('d/m/Y') }}
|
|
@endforeach