perbaikan bug course

This commit is contained in:
Baghiz Zuhdi Adzin 2026-01-27 08:38:01 +07:00
parent 6a0a81cc70
commit 12efb108d3
5 changed files with 12 additions and 12 deletions

View File

@ -134,7 +134,7 @@ class CourseController extends Controller
$data['user_id'] = auth()->user()->id; $data['user_id'] = auth()->user()->id;
$data['category_id'] = $request->category_id; $data['category_id'] = $request->category_id;
$data['course_type'] = $request->course_type; $data['course_type'] = $request->course_type;
$data['status'] = 'pending'; $data['status'] = 'draft';
$data['level'] = $request->level; $data['level'] = $request->level;
$data['language'] = strtolower($request->language); $data['language'] = strtolower($request->language);
$data['is_paid'] = $request->is_paid; $data['is_paid'] = $request->is_paid;
@ -246,7 +246,7 @@ class CourseController extends Controller
'category_id' => 'required|numeric|min:1', 'category_id' => 'required|numeric|min:1',
'level' => 'required|in:everyone,beginner,intermediate,advanced', 'level' => 'required|in:everyone,beginner,intermediate,advanced',
'language' => 'required', 'language' => 'required',
'status' => 'required|in:active,pending,draft,private,upcoming,inactive', 'status' => 'required|in:active,pending,draft,private,upcoming,deactive',
'instructors' => 'required|array|min:1', 'instructors' => 'required|array|min:1',
]; ];

View File

@ -21,7 +21,7 @@ class CustomResetPasswordNotification extends Notification
public function toMail($notifiable) public function toMail($notifiable)
{ {
return (new MailMessage) return (new MailMessage)
->subject(get_phrase('Custom Password Reset Subject')) ->subject(get_phrase('Password Reset Notification'))
->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false))); ->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false)));
} }
} }

View File

@ -17,10 +17,10 @@
<span class="fi-rr-arrow-left"></span> <span class="fi-rr-arrow-left"></span>
<span>{{ get_phrase('Back') }}</span> <span>{{ get_phrase('Back') }}</span>
</a> </a>
<a href="https://creativeitem.com/docs" class="btn ol-btn-outline-secondary d-flex align-items-center cg-10px" target="_blank"> <!-- <a href="https://creativeitem.com/docs" class="btn ol-btn-outline-secondary d-flex align-items-center cg-10px" target="_blank">
<span class="fi-rr-arrow-up-right-from-square"></span> <span class="fi-rr-arrow-up-right-from-square"></span>
<span>{{ get_phrase('Help') }}</span> <span>{{ get_phrase('Help') }}</span>
</a> </a> -->
</div> </div>
</div> </div>
</div> </div>

View File

@ -488,13 +488,13 @@
href="{{ route('admin.manage.language') }}">{{ get_phrase('Manage Language') }}</a> href="{{ route('admin.manage.language') }}">{{ get_phrase('Manage Language') }}</a>
</li> </li>
@endif @endif
@if (has_permission('admin.live.class.settings')) <!-- @if (has_permission('admin.live.class.settings'))
<li <li
class="sidebar-second-li {{ $current_route == 'admin.live.class.settings' ? 'active' : '' }}"> class="sidebar-second-li {{ $current_route == 'admin.live.class.settings' ? 'active' : '' }}">
<a <a
href="{{ route('admin.live.class.settings') }}">{{ get_phrase('Live Class Settings') }}</a> href="{{ route('admin.live.class.settings') }}">{{ get_phrase('Live Class Settings') }}</a>
</li> </li>
@endif @endif -->
@if (has_permission('admin.notification.settings')) @if (has_permission('admin.notification.settings'))
<li <li
class="sidebar-second-li {{ $current_route == 'admin.notification.settings' ? 'active' : '' }}"> class="sidebar-second-li {{ $current_route == 'admin.notification.settings' ? 'active' : '' }}">

View File

@ -74,17 +74,17 @@
<div class="col-sm-10"> <div class="col-sm-10">
<div class="eRadios"> <div class="eRadios">
<div class="form-check"> <div class="form-check">
<input type="radio" value="active" name="status" class="form-check-input eRadioSuccess" id="status_active" @if ($course_details->status == 'active') checked @endif required disabled> <input type="radio" value="active" name="status" class="form-check-input eRadioSuccess" id="status_active" @if ($course_details->status == 'active') checked @endif required>
<label for="status_active" class="form-check-label">{{ get_phrase('Active') }}</label> <label for="status_active" class="form-check-label">{{ get_phrase('Active') }}</label>
</div> </div>
<div class="form-check"> <div class="form-check">
<input type="radio" value="upcoming" name="status" class="form-check-input eRadioInfo" id="status_upcoming" @if ($course_details->status == 'upcoming') checked @endif required disabled> <input type="radio" value="upcoming" name="status" class="form-check-input eRadioInfo" id="status_upcoming" @if ($course_details->status == 'upcoming') checked @endif required>
<label for="status_upcoming" class="form-check-label">{{ get_phrase('Upcoming') }}</label> <label for="status_upcoming" class="form-check-label">{{ get_phrase('Upcoming') }}</label>
</div> </div>
<div class="form-check"> <div class="form-check">
<input type="radio" value="deactive" name="status" class="form-check-input eRadioDark" id="status_deactive" @if ($course_details->status == 'deactive') checked @endif required disabled> <input type="radio" value="deactive" name="status" class="form-check-input eRadioDark" id="status_deactive" @if ($course_details->status == 'deactive') checked @endif required>
<label for="status_deactive" class="form-check-label">{{ get_phrase('Deactive') }}</label> <label for="status_deactive" class="form-check-label">{{ get_phrase('Deactive') }}</label>
</div> </div>
@ -94,10 +94,10 @@
</div> </div>
<div class="form-check"> <!-- <div class="form-check">
<input type="radio" value="pending" name="status" class="form-check-input eRadioDanger" id="status_pending" @if ($course_details->status == 'pending') checked @endif required> <input type="radio" value="pending" name="status" class="form-check-input eRadioDanger" id="status_pending" @if ($course_details->status == 'pending') checked @endif required>
<label for="status_pending" class="form-check-label">{{ get_phrase('Pending') }}</label> <label for="status_pending" class="form-check-label">{{ get_phrase('Pending') }}</label>
</div> </div> -->
<div class="form-check"> <div class="form-check">
<input type="radio" value="draft" name="status" class="form-check-input eRadioSecondary" id="status_draft" @if ($course_details->status == 'draft') checked @endif required> <input type="radio" value="draft" name="status" class="form-check-input eRadioSecondary" id="status_draft" @if ($course_details->status == 'draft') checked @endif required>