Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updatedfileuploadlink #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/views/courses/document.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('content')


<div class="container-fluid">
<div class="container-fluid" style="background-color: #6497b1;">
<div class="row justify-content-center">
<div class="col-md-11">
<div class="container">
Expand All @@ -18,15 +18,15 @@



<div class="col-md-10">
<div class="col-md-10" style="color: #3da4ab;">

<div class="embed-responsive embed-responsive-16by9 mb-4">
{!! $document->video_url !!}
</div>

<p class="p">{{$document->intro}}</p>
<a href="{{url('storage').'/'.$document->document}}" class="btn btn-primary"
id="download" download="{{$document->title}}" >Download Resource PDF</a>
id="download" download="{{$document->title}}" >Download PDF Copy</a>
</div>

</div>
Expand All @@ -50,7 +50,7 @@


<!-- Related Projects Row -->
<h3 class="my-4">Other Resources</h3>
<h3 class="my-4" style="color: #3da4ab">More Resources</h3>

<div class="row">
@foreach($related as $document)
Expand Down
6 changes: 3 additions & 3 deletions resources/views/courses/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

@section('content')

<div class="container-fluid">
<div class="container-fluid" style="backgroundcolor: #6497b1">
<div class="row justify-content-center">
<div class="col-md-11">
<div class="container">
@if($course->enrolled())
<button type="submit" class="btn btn-success btn-lg">Enrolled</button>
<button type="submit" class="btn btn-success btn-lg" style="color: #008744;">Enrolled</button>
@if($course->classroom->count() > 0)
<p class="p">{{$course->classroom->count()}} already enrolled</p>
@endif
@else
<form method="POST" action="{{route('student.enroll')}}">
@csrf
<input type="hidden" name="course_id" value="{{$course->id}}">
<button type="submit" class="btn btn-primary btn-lg">Enroll For Free</button>
<button type="submit" class="btn btn-primary btn-lg" style="color: #008744;">Enroll For Free</button>
@if($course->classroom->count() > 0)
<p class="p">{{$course->classroom->count()}} student enrolled</p>
@endif
Expand Down