feat(tour): implement tour details page with comments system and dynamic sidebar

This commit is contained in:
2026-08-18 16:14:14 +03:30
parent 83cca25dd8
commit c3d6bed0f1
8 changed files with 236 additions and 12 deletions
+4 -3
View File
@@ -6,13 +6,14 @@
namespace App\Models;
use App\Enums\CommentStatus;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Comment
*
*
* @property int $id
* @property int|null $user_id
* @property int|null $admin_id
@@ -26,7 +27,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property Carbon $created_at
* @property Carbon $updated_at
* @property string|null $deleted_at
*
*
* @property Flight|null $flight
* @property Tour|null $tour
* @property User|null $user
@@ -46,7 +47,7 @@ class Comment extends Model
'tour_id' => 'int',
'flight_id' => 'int',
'parent_id' => 'int',
'status' => 'int'
'status' => CommentStatus::class
];
protected $fillable = [