lots of improvements
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
@endif
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="rating" class="form-label">Rating (1-20)</label>
|
||||
<label for="rating" class="form-label">Rating (1-10)</label>
|
||||
<div class="interactive-stars mb-2">
|
||||
<div class="stars-container" id="starsContainer">
|
||||
@for ($i = 1; $i <= 10; $i++)
|
||||
@@ -21,6 +21,21 @@
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="platform_id" class="form-label">Platform</label>
|
||||
<select name="platform_id" id="platform_id" class="form-control bg-dark text-white @error('platform_id') is-invalid @enderror" required>
|
||||
<option value="">Select a platform</option>
|
||||
@foreach($platforms as $platform)
|
||||
<option value="{{ $platform->id }}" {{ isset($review) && $review->platform_id == $platform->id ? 'selected' : '' }}>
|
||||
{{ $platform->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@error('platform_id')
|
||||
<div class="text-danger mt-1">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="content" class="form-label">Review</label>
|
||||
<textarea name="content" id="content" class="form-control bg-dark text-white @error('content') is-invalid @enderror" rows="10" required>{{ old('content', $review->content ?? '') }}</textarea>
|
||||
|
||||
Reference in New Issue
Block a user