{{-- resources/views/positions/index.blade.php --}} @extends('layouts.app') @section('title', 'Manajemen Posisi') @section('page-title', 'Manajemen Posisi') @push('styles') {{-- FIX: pastikan dropdown tidak terpotong & selalu di atas --}} @endpush @section('content')
{{-- Toggle sidebar (mobile) --}}

Manajemen Posisi

{{-- Filter --}}
{{-- Tabel --}}

Daftar Posisi

Total: {{ $positions->total() }} posisi
{{-- Desktop Table --}}
@forelse($positions as $index => $position) @empty @endforelse
No Posisi Tipe & Gaji Aplikasi Status Tanggal Aksi
{{ $positions->firstItem() + $index }}
{{ $position->position_name }}
{{ $position->department }}
@if($position->location)
{{ $position->location }}
@endif
{{ $position->employment_type_label }}
{{ $position->salary_range }}
Total: {{ $position->total_applications_count }}
Proses: {{ $position->active_applications_count }}
@if($position->is_active == 1) Aktif @else Tutup @endif
@if($position->posted_date)
Posted: {{ $position->posted_date->format('d M Y') }}
@endif @if($position->closing_date)
Tutup: {{ $position->closing_date->format('d M Y') }} @if($position->closing_date->isPast()) (Lewat) @endif
@endif

Tidak ada posisi yang tersedia

@if(request()->hasAny(['search','department','status','employment_type'])) Coba ubah filter pencarian Anda @endif
{{-- Mobile Cards --}}
@forelse($positions as $index => $position)
{{ $position->position_name }}
{{ $position->department }}
@if($position->location)
{{ $position->location }}
@endif
{{-- Tombol langsung ke Detail (mobile UX) --}} Detail
Tipe
{{ $position->employment_type_label }}
Gaji
{{ $position->salary_range }}
Aplikasi
{{ $position->total_applications_count }} ({{ $position->active_applications_count }} aktif)
Status
@if($position->is_active == 1) Aktif @else Tutup @endif
@if($position->posted_date || $position->closing_date)
Tanggal
@if($position->posted_date)
Posted: {{ $position->posted_date->format('d M Y') }}
@endif @if($position->closing_date)
Tutup: {{ $position->closing_date->format('d M Y') }} @if($position->closing_date->isPast()) (Lewat) @endif
@endif
@endif
@empty

Tidak ada posisi yang tersedia

@if(request()->hasAny(['search','department','status','employment_type'])) Coba ubah filter pencarian Anda @endif
@endforelse
{{-- Pagination --}} @if ($positions->hasPages())
Menampilkan {{ $positions->firstItem() ?? 0 }} - {{ $positions->lastItem() ?? 0 }} dari {{ $positions->total() }} hasil
Halaman {{ $positions->currentPage() }} dari {{ $positions->lastPage() }}
    @if ($positions->onFirstPage())
  • @else
  • @endif @foreach ($positions->links()->elements[0] as $page => $url) @if ($page == $positions->currentPage())
  • {{ $page }}
  • @else
  • {{ $page }}
  • @endif @endforeach @if ($positions->hasMorePages())
  • @else
  • @endif
@endif
@endsection @push('scripts') {{-- Event helper minimal agar action bisa diklik walaupun JS utama gagal load --}} {{-- JS utama kamu (konfirmasi Nonaktif/Aktif/Hapus sesuai mockup alert yang kamu minta) --}} @endpush