-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from lara-zeus/revert-223-sub-nav
Revert "use sub nav in forms nav"
- Loading branch information
Showing
24 changed files
with
515 additions
and
363 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 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
73 changes: 0 additions & 73 deletions
73
resources/views/filament/resources/response-resource/pages/browse-entry.blade.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace LaraZeus\Bolt\Concerns; | ||
|
||
use Filament\Actions\Action; | ||
use Filament\Actions\ActionGroup; | ||
use LaraZeus\Bolt\Filament\Resources\ResponseResource; | ||
|
||
/** | ||
* @property int $form_id. | ||
*/ | ||
trait EntriesAction | ||
{ | ||
public function getEntriesActions(?int $formId = null): array | ||
{ | ||
$formId = $formId ?? $this->form_id; | ||
|
||
return [ | ||
ActionGroup::make([ | ||
Action::make('brows') | ||
->icon('heroicon-o-eye') | ||
->visible($formId !== 0) | ||
->label(__('Brows Entries')) | ||
->url(fn (): string => ResponseResource::getUrl('brows') . '?form_id=' . $formId), | ||
Action::make('list') | ||
->icon('heroicon-o-bars-4') | ||
->visible($formId !== 0) | ||
->label(__('List Entries')) | ||
->url(fn (): string => ResponseResource::getUrl() . '?form_id=' . $formId), | ||
Action::make('report') | ||
->icon('heroicon-o-document-chart-bar') | ||
->visible($formId !== 0) | ||
->label(__('Entries Report')) | ||
->url(fn (): string => ResponseResource::getUrl('report') . '?form_id=' . $formId), | ||
]) | ||
->button() | ||
->color('info') | ||
->label(__('Entries')) | ||
->tooltip(__('view all entries')) | ||
->icon('clarity-data-cluster-line') | ||
->tooltip(__('view all entries')), | ||
]; | ||
} | ||
} |
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.