@extends('adminlte::page') @section('title', config('app.name') . ' | ' . __('messages.open_positions')) @section('content_header') @if (Auth::user()->hasAnyRole('admin', 'hiringManager'))

{{__('messages.adm')}} / {{__('messages.open_positions')}}

@else

{{__('messages.reusable.no_access')}}

@endif @stop @section('js') @if (session()->has('success')) @elseif(session()->has('error')) @endif @if($errors->any()) @foreach ($errors->all() as $error) @endforeach @endif @stop @section('content') @if (Auth::user()->hasAnyRole('admin', 'hiringManager'))

{{__('messages.open_positions')}}

@if(!$vacancies->isEmpty()) @foreach($vacancies as $vacancy) @if($vacancy->vacancyStatus == 'OPEN') @else @endif @endforeach
{{__('messages.contactlabel_name')}} {{__('messages.reusable.description')}} {{__('messages.vacancy.discord_roleid')}} {{__('messages.vacancy.permission_groupr')}} {{__('messages.vacancy.free_slots')}} {{__('messages.reusable.status')}} {{__('messages.reusable.created_at')}} {{__('messages.reusable.actions')}}
{{$vacancy->vacancyName}} {{substr($vacancy->vacancyDescription, 0, 20)}}... {{$vacancy->discordRoleID}} {{$vacancy->permissionGroupName}} {{$vacancy->vacancyCount}}{{__('messages.open')}}{{__('messages.closed')}}{{$vacancy->created_at}} @if ($vacancy->vacancyStatus == 'OPEN')
@csrf @method('PATCH')
@else
@csrf @method('PATCH')
@endif
@else

{{__('messages.positions_p.empty_pos_warning')}}

@endif
@else @endif @stop @section('footer') @include('breadcrumbs.dashboard.footer') @stop