Redaktion mit Bereichsleiste und Übersicht (0.42.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m51s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 6m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m16s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m21s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m30s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 9m44s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m49s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m37s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 18:38:44 +00:00
parent b1209a0d33
commit d5b7b1e0a8
146 changed files with 666 additions and 362 deletions

View file

@ -13,6 +13,7 @@ use App\Support\Abilities;
use App\Support\Navigation;
use Carbon\CarbonImmutable;
use Illuminate\Support\Facades\Schedule;
use Inhaus\Plugins\Stellen\Models\JobApplication;
use Inhaus\Plugins\Stellen\Models\JobPosting;
class StellenPlugin extends Plugin
@ -49,6 +50,13 @@ class StellenPlugin extends Plugin
->map(fn (JobPosting $p) => [...Presenter::card($p), 'applications' => $p->applications_count, 'edit_url' => route('jobs.edit', $p), 'applications_url' => route('jobs.applications', $p)])->all(),
'canCreate' => $user->can('jobs.manage'),
]);
$this->app->make(Editorial::class)->meta('stellen', icon: 'briefcase',
todo: function (User $user) {
$count = $user->can('jobs.applications') || $user->can('jobs.manage') ? JobApplication::query()->where('status', 'received')->whereNull('withdrawn_at')->count() : 0;
return ['count' => $count, 'label' => $count === 1 ? 'neue Bewerbung' : 'neue Bewerbungen'];
},
create: fn (User $user) => $user->can('jobs.manage') ? ['label' => 'Stelle ausschreiben', 'href' => route('jobs.create')] : null);
}
public function boot(): void