@extends('dashboard.layouts.app') @section('page-title', trans('vacancies.caption.index')) @section('page-menu') @lang('vacancies.button.create') @stop @section('breadcrumbs') @stop @section('content')
@if (count($vacancies)) @foreach ($vacancies as $vacancy) @endforeach
@lang('global.legend.id') @lang('global.legend.name') @lang('global.and') @lang('global.legend.slug') @lang('global.legend.position') @lang('global.legend.publishedAt')
{{ $vacancy->id }} {!! $vacancy->translate('name', $activeLanguages->where('code', 'RU')->first()->id ?? null, '–') !!}
{{ $vacancy->slug }}
{{ $vacancy->position }} {{ $vacancy->published_at->format('d/m/Y - H:i') }} @lang('global.button.edit') {!! Form::model($vacancy, [ 'method' => 'DELETE', 'route' => ['dashboard.vacancies.destroy', $vacancy->id], 'class' => 'd-inline', 'onsubmit' => 'confirmDialog("' . trans('vacancies.modal.delete', ['id' => $vacancy->id]) . '", event)' ]) !!} {!! Form::close() !!}
@else
@lang('vacancies.alert.notFound')
@endif
@stop