{#if loading}
Loading jobs...
{:else if jobs.length === 0}
No jobs found
Try adjusting your search or filters
{:else}
{#each getPaginatedJobs() as job (job.id)}
onJobClick(job)} /> {/each}
{#if getTotalPages() > 1}
Showing {(currentPage - 1) * jobsPerPage + 1} - {Math.min( currentPage * jobsPerPage, jobs.length )} of {jobs.length} jobs
← Previous
{#each Array.from({ length: getTotalPages() }, (_, i) => i + 1) as page} {#if page === currentPage}
{page}
{:else if page <= 2 || page >= getTotalPages() - 1 || Math.abs(page - currentPage) <= 1}
(currentPage = page)} class="w-8 h-8 flex items-center justify-center rounded hover:bg-gray-100 text-sm transition-colors" > {page}
{:else if page === 3 && currentPage > 4}
...
{/if} {/each}
Next →
{/if} {/if}