-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82ed9ad
commit a602fa1
Showing
152 changed files
with
1,312 additions
and
2,570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Nova\Foundation\View\Layouts; | ||
|
||
use Illuminate\Support\Facades\Auth; | ||
use Illuminate\View\Component; | ||
use Nova\Applications\Models\Application; | ||
use Nova\Pages\Models\Page; | ||
|
||
class AdminLayout extends Component | ||
{ | ||
protected ?Page $page; | ||
|
||
protected ?string $subnav; | ||
|
||
public function __construct() | ||
{ | ||
$this->page = request()->route()?->findPageFromRoute(); | ||
$this->subnav = app('nova.meta')->subnavSection; | ||
} | ||
|
||
public function pendingApplicationsCount(): int | ||
{ | ||
return once(fn () => Application::pending()->count()); | ||
} | ||
|
||
public function unreadAnnouncementsCount(): int | ||
{ | ||
return once(fn () => Auth::user()->unread_announcements_count); | ||
} | ||
|
||
public function unreadMessagesCount(): int | ||
{ | ||
return once(fn () => Auth::user()->unread_messages_count); | ||
} | ||
|
||
public function render() | ||
{ | ||
return view('layouts.admin'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Nova\Foundation\View\Layouts; | ||
|
||
use Illuminate\View\Component; | ||
|
||
class AuthLayout extends Component | ||
{ | ||
public function __construct( | ||
public string $pageHeader | ||
) {} | ||
|
||
public function render() | ||
{ | ||
return view('layouts.auth'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.