Migration complete
This commit is contained in:
@@ -17,7 +17,7 @@ class DatabaseFilterWithModeSearch extends Component
|
||||
public string $model,
|
||||
public string $modeModel,
|
||||
public string $selectedMode,
|
||||
|
||||
public string $searchModel,
|
||||
public string $idProperty = 'id',
|
||||
public string $nameProperty = 'name',
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@ class DatabaseFilterWithoutModeSearch extends Component
|
||||
public string $title,
|
||||
public $items,
|
||||
public string $model,
|
||||
|
||||
public string $searchModel,
|
||||
public string $idProperty = 'id',
|
||||
public string $nameProperty = 'name',
|
||||
)
|
||||
|
||||
@@ -17,6 +17,10 @@ class ErrorBlock extends Component
|
||||
'page-not-allowed' => [
|
||||
'icon' => 'shield-ban',
|
||||
'message' => "You do not have permission to access this page.\nRequired permission: %s"
|
||||
],
|
||||
'user-state-not-valid' => [
|
||||
'icon' => 'shield-ban',
|
||||
'message' => "You do not have permission to access this page.\nYour user profile is incomplete: %s\nGo back to the forum for more details."
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
30
app/View/Components/ReviewCard.php
Normal file
30
app/View/Components/ReviewCard.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use App\Models\EntryReview;
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class ReviewCard extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct(
|
||||
public EntryReview $review,
|
||||
public bool $entryShow = false
|
||||
)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.review-card');
|
||||
}
|
||||
}
|
||||
28
app/View/Components/ReviewStarRating.php
Normal file
28
app/View/Components/ReviewStarRating.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class ReviewStarRating extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct(
|
||||
public float $rating,
|
||||
)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.review-star-rating');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user