added popular tag in courses
Cette révision appartient à :
Parent
c41694dd6c
révision
e32420b672
@ -68,6 +68,7 @@ public function store(AddNewRequest $request)
|
||||
$course->prerequisites_en = $request->prerequisites_en;
|
||||
$course->prerequisites_bn = $request->prerequisites_bn;
|
||||
$course->thumbnail_video = $request->thumbnail_video;
|
||||
$course->tag = $request->tag;
|
||||
$course->status = $request->status;
|
||||
$course->language = 'en';
|
||||
|
||||
@ -143,6 +144,7 @@ public function update(UpdateRequest $request, $id)
|
||||
$course->prerequisites_en = $request->prerequisites_en;
|
||||
$course->prerequisites_bn = $request->prerequisites_bn;
|
||||
$course->thumbnail_video = $request->thumbnail_video;
|
||||
$course->tag = $request->tag;
|
||||
$course->status = $request->status;
|
||||
$course->language = 'en';
|
||||
|
||||
|
||||
@ -234,6 +234,18 @@
|
||||
<span class="text-danger"> {{ $errors->first('thumbnail_video') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Course Tag</label>
|
||||
<select class="form-control" name="tag">
|
||||
<option value="popular" @if(old('tag')=='popular' ) selected @endif>Popular</option>
|
||||
<option value="featured" @if(old('tag')=='featured' ) selected @endif>Featured
|
||||
</option>
|
||||
<option value="upcoming" @if(old('tag')=='upcoming' ) selected @endif>Upcoming
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Status</label>
|
||||
|
||||
@ -252,6 +252,24 @@
|
||||
<span class="text-danger"> {{ $errors->first('thumbnail_video') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Course Tag</label>
|
||||
<select class="form-control" name="tag">
|
||||
<option value="popular" @if(old('tag', $course->tag)=='popular' ) selected
|
||||
@endif>Popular
|
||||
</option>
|
||||
<option value="featured" @if(old('tag', $course->tag)=='featured' ) selected
|
||||
@endif>Featured
|
||||
</option>tag
|
||||
<option value="upcoming" @if(old('tag', $course->tag)=='upcoming' ) selected
|
||||
@endif>Upcoming</option>
|
||||
</select>
|
||||
</div>
|
||||
@if($errors->has('tag'))
|
||||
<span class="text-danger"> {{ $errors->first('tag') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Status</label>
|
||||
|
||||
@ -74,14 +74,9 @@
|
||||
<span class="mb-0">Category :</span>
|
||||
<strong>{{$d->courseCategory?->category_name}}</strong>
|
||||
</li>
|
||||
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||
<span class="mb-0">Type :</span>
|
||||
<strong>{{ $d->type == 'free' ? __('Free') : ($d->type == 'paid' ? __('Paid') :
|
||||
__('Subscription')) }}</strong>
|
||||
</li>
|
||||
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||
<span class="mb-0">Price :</span>
|
||||
<strong>৳{{$d->price==null?'0.00':$d->price}}</strong>
|
||||
<strong>{{$d->price?'৳'.$d->price:'Free'}}</strong>
|
||||
</li>
|
||||
</ul>
|
||||
<a class="btn btn-outline-primary btn-rounded mt-3 px-4" href="about-student.html">Read More</a>
|
||||
|
||||
Chargement…
Référencer dans un nouveau ticket
Block a user