Projects

Manage all projects / works

@if (session()->has('success'))
{{ session('success') }}
@endif
@forelse($projects as $project)

{{ $project->title }}

@if ($project->mini_text)

{{ $project->mini_text }}

@endif {{ $project->status ? 'Active' : 'Inactive' }}
@if ($project->hero_media_type === 'image' && $project->hero_media) @elseif ($project->hero_media_type === 'video' && $project->hero_media) @else
No Media
@endif

Rotating Text

@if (is_array($project->rotating_text))
@foreach ($project->rotating_text as $text) {{ $text }} @endforeach
@else @endif
Edit
@empty
No projects found
@endforelse
@if ($projects->hasPages())

Showing {{ $projects->firstItem() }} to {{ $projects->lastItem() }} of {{ $projects->total() }} results

{{-- Previous --}} @if ($projects->onFirstPage()) @else @endif {{-- Smart Page Range --}} @php $start = max(1, $projects->currentPage() - 1); $end = min($projects->lastPage(), $projects->currentPage() + 1); @endphp {{-- First --}} @if ($start > 1) @if ($start > 2) @endif @endif {{-- Middle --}} @for ($page = $start; $page <= $end; $page++) @if ($page == $projects->currentPage()) {{ $page }} @else @endif @endfor {{-- Last --}} @if ($end < $projects->lastPage()) @if ($end < $projects->lastPage() - 1) @endif @endif {{-- Next --}} @if ($projects->hasMorePages()) @else @endif
@endif @if ($deleteId)

Delete Project?

This action cannot be undone.

@endif