A lot of things

This commit is contained in:
2026-06-16 16:21:43 +02:00
parent 4f9f6c63b3
commit 7e1e26f20b
126 changed files with 7917 additions and 204 deletions

View File

@@ -3,6 +3,7 @@
namespace App\View\Components;
use App\Models\Entry;
use App\Models\News;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
@@ -16,11 +17,16 @@ class SubmitEntryStatus extends Component
public string $section,
public bool $isEdit,
public ?string $currentState,
public null|string|Entry $entry = 'App\Models\Entry',
public null|string|Entry|News $entry = null,
public bool $news = false
)
{
if( $this->entry === null )
$this->entry = 'App\Models\Entry';
if( $this->entry === null ){
if( $news )
$this->entry = 'App\Models\News';
else
$this->entry = 'App\Models\Entry';
}
}
public function availableStates(): array