@extends('layouts.app') @section('form-title') {{ __('Settings project statuses') }} @endsection @section('form-sub-title') {{ __('Add, delete or rename project statuses') }} @endsection @section('breadcrumb') @endsection @section('content')
{{-- Add section --}} @if(canViewUpdate('add project status'))
{{ __('Add new project status') }}
@csrf
{{ __('Dutch') }}
{{ __('English') }}
@if($errors->has('title_nl'))

{{ $errors->first('title_nl') }}

@endif
@if($errors->has('title_en'))

{{ $errors->first('title_en') }}

@endif
@endif {{-- Add section ends --}} {{-- Edit section --}} @if($project_statuses->isNotEmpty()) @if(canViewUpdate('view project status'))
{{ __('Project statuses') }}
{{ __('project status description') }}
@csrf @method('PUT')
@if(canViewUpdate('edit project status')) @endif @if(canViewUpdate('delete project status')) @endif @foreach ($project_statuses as $project_status) @php $old_pos[] = $project_status->list_order; @endphp @if(canViewUpdate('edit project status')) @endif @endforeach
{{ __('Projects') }} {{ __('Dutch') }} {{ __('English') }} {{ __('Default') }} {{ __('Active project') }}
@if($project_status->projects_count) {{ $project_status->projects_count }} @else 0 @endif @if(canViewUpdate('edit project status')) @else {{ ucfirst($project_status->title_nl) }} @endif @if(canViewUpdate('edit project status')) @else {{ ucfirst($project_status->title_en) }} @endif @if(canViewUpdate('edit project status'))
@else {{ $project_status->is_default ? __('Yes') : __('No') }} @endif
@if(canViewUpdate('edit project status'))
@else {{ $project_status->active_project ? __('Yes') : __('No') }} @endif
@if(canViewUpdate('delete project status')) @if(!$project_status->projects_count && !$project_status->is_default) @else @endif @endif
@if(canViewUpdate('edit project status'))
@endif
@endif @else
@endif {{-- Edit section ends --}}
@endsection @push('child-scripts') @if(canViewUpdate('delete project status')) @endif @endpush