Compare commits

..

2 Commits

Author SHA1 Message Date
Baghiz Zuhdi Adzin
17551f5615 Merge branch 'main' of https://git.tp.ac.id/baghizadizn/web-mooc 2026-01-27 08:40:23 +07:00
Baghiz Zuhdi Adzin
12efb108d3 perbaikan bug course 2026-01-27 08:38:01 +07:00
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['category_id'] = $request->category_id;
$data['course_type'] = $request->course_type;
$data['status'] = 'pending';
$data['status'] = 'draft';
$data['level'] = $request->level;
$data['language'] = strtolower($request->language);
$data['is_paid'] = $request->is_paid;
@ -246,7 +246,7 @@ class CourseController extends Controller
'category_id' => 'required|numeric|min:1',
'level' => 'required|in:everyone,beginner,intermediate,advanced',
'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',
];

View File

@ -21,7 +21,7 @@ class CustomResetPasswordNotification extends Notification
public function toMail($notifiable)
{
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)));
}
}

View File

@ -17,10 +17,10 @@
<span class="fi-rr-arrow-left"></span>
<span>{{ get_phrase('Back') }}</span>
</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>{{ get_phrase('Help') }}</span>
</a>
</a> -->
</div>
</div>
</div>

View File

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

View File

@ -74,17 +74,17 @@
<div class="col-sm-10">
<div class="eRadios">
<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>
</div>
<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>
</div>
<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>
</div>
@ -94,10 +94,10 @@
</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>
<label for="status_pending" class="form-check-label">{{ get_phrase('Pending') }}</label>
</div>
</div> -->
<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>