@extends('layouts.app') @section('title', 'Available Posts') @section('content')

Available Faculty Positions

@forelse($posts as $post)
{{ $post->title }}

Department: {{ $post->department }}
Position: {{ $post->position_type }}
Vacancies: {{ $post->number_of_posts }}
Last Date: {{ $post->last_date->format('d M Y') }}

{{ Str::limit($post->description, 100) }}

@php $application = $post->applications->where('user_id', auth()->id())->first(); @endphp @if($application)
Applied App ID: {{ $application->application_number }}
Continue Application @else Apply Now @endif
@empty
No Posts Available

Currently, there are no faculty positions available for application.

@endforelse
{{ $posts->links() }}
@endsection