File "my-course.blade.php"
Full Path: /home/fundopuh/trader.fxex.org/resources/views/purpose/user/membership/my-course.blade.php
File size: 2.72 KB
MIME-type: text/html
Charset: utf-8
@extends('layouts.dash')
@section('title', $title)
@section('content')
<!-- Page title -->
<div class="page-title mb-4">
<div class="row justify-content-between align-items-center">
<div class="mb-3 col-12">
<h5 class="mb-0 text-white h3 font-weight-400">Your Courses</h5>
</div>
</div>
</div>
<x-danger-alert />
<x-success-alert />
<div class="row">
<div class="col-md-12">
<div class="row">
@forelse ($courses as $course)
<div class="col-md-4">
<div class="card rounded-0">
<img src="{{ str_starts_with($course->image_url, 'http') ? $course->image_url : asset('public/' . $course->image_url) }}"
class="card-img-top" alt="course image">
<div class="card-body">
<h5 class="font-weight-bolder">{{ $course->title }}</h5>
<div class="d-flex justify-content-between align-items-center my-2">
<div class="d-flex align-items-center">
<i class="mr-1 fa fa-book"></i>
<span>
{{ count($course->lessons) }}
{{ count($course->lessons) > 1 ? 'Lessons' : 'Lesson' }}
</span>
</div>
</div>
<div class="d-flex align-items-center justify-content-between">
<a href="{{ route('user.mycoursedetails', $course->id) }}"
class="btn btn-primary btn-block rounded-0 d-flex align-items-center justify-content-center">
<i class="fas fa-play-circle fa-2x text-danger mr-2"></i>
<span>Watch</span>
</a>
</div>
</div>
</div>
</div>
@empty
<div class="col-md-12">
<div class="card">
<div class="card-body text-center py-2">
<p>No Data Available</p>
</div>
</div>
</div>
@endforelse
<div class="col-md-12">
{{-- {{ $courses->links() }} --}}
</div>
</div>
</div>
</div>
@endsection