@extends('layouts.admin') @section('title', 'Advertisements Management') @section('content')
| Adv. Number | Title & Position | Department | Application Period | Posts & Pay Level | Status | Applications | Actions |
|---|---|---|---|---|---|---|---|
|
{{ $advertisement->advertisement_number ?? 'N/A' }}
ID: {{ $advertisement->id }}
|
{{ $advertisement->title }}
{{ $advertisement->position }}
{{ Str::limit($advertisement->description, 40) }}
|
@if($advertisement->department_id && $advertisement->department)
{{ $advertisement->department->name }}
{{ $advertisement->department->code }}
@else
No Department
@endif
|
Start: {{ $advertisement->application_start_date->format('M d, Y H:i') }}
End: {{ $advertisement->application_end_date->format('M d, Y H:i') }}
@if($advertisement->application_end_date < now())
Expired
@elseif($advertisement->application_start_date > now())
Not Started
@else
Active
@endif
|
Posts: {{ $advertisement->number_of_posts }}
@if($advertisement->pay_level)
Pay: {{ $advertisement->pay_level }}
@endif
@if($advertisement->posts_per_category)
Category-wise available
@endif
|
@php $statusColors = [ 'draft' => 'secondary', 'published' => 'success', 'closed' => 'danger' ]; $color = $statusColors[$advertisement->status] ?? 'secondary'; @endphp {{ ucfirst($advertisement->status) }} | {{ $advertisement->applications()->count() }} Applications |
@if(request()->hasAny(['search', 'status', 'department'])) No advertisements match your current filters. @else You haven't created any advertisements yet. @endif
@if(!request()->hasAny(['search', 'status', 'department'])) Create Your First Advertisement @else Clear Filters @endif