@if (!empty($getContentsData)) @foreach ($getContentsData as $key => $content) @php($user = \App\Models\User::where('id', $content->user_id)->first()) @endforeach @endif
# {{ __('Category') }} {{ __('Sub Category') }} {{ __('Page Name') }} {{ __('Slug') }} {{ __('Updated By') }} {{ __('Created Date') }} {{ __('Updated Date') }} {{ __('Action') }}
{{ $loop->iteration }} @if ($content->cmCategory !== null && $content->cmCategory->parent_id == 0) {{ !empty($content->cmCategory) ? $content->cmCategory->name : '' }} @else {{ !empty($content->cmCategory->parentCategory) ? $content->cmCategory->parentCategory->name : '' }} @endif @if ($content->cmCategory !== null && $content->cmCategory->parent_id != 0) {{ $content->cmCategory->name }} @endif {{ !empty($content->page_name) ? $content->page_name : '' }} {{ !empty($content->slug) ? $content->slug : '' }} {{ !empty($user->email) ? $user->email : '' }} {{ $content->created_at->format('d-m-Y') }} {{ $content->updated_at->format('d-m-Y') }}
@csrf
@push('scripts') @endpush