Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
c9e3ba8d
Commit
c9e3ba8d
authored
Dec 16, 2022
by
alissonalbuquerque
Browse files
add correções
parent
d10c4812
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Models/UserPad.php
View file @
c9e3ba8d
...
@@ -23,7 +23,7 @@ class UserPad extends Model
...
@@ -23,7 +23,7 @@ class UserPad extends Model
}
}
public
function
pad
()
{
public
function
pad
()
{
return
$this
->
belongsTo
(
Pad
::
class
);
return
$this
->
belongsTo
(
Pad
::
class
,
'pad_id'
);
}
}
public
function
statusAsText
()
{
public
function
statusAsText
()
{
...
...
resources/views/layouts/user-dashboard/dashboard_teacher.blade.php
View file @
c9e3ba8d
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<h3
class=
"text-center"
>
<i
class=
"bi bi-book-half"
></i>
</h3>
<h3
class=
"text-center"
>
<i
class=
"bi bi-book-half"
></i>
</h3>
<h5
class=
"text-center"
>
PAD: {{ $userPad->pad->nome }}
</h4>
<h5
class=
"text-center"
>
Status: {{ $userPad->pad->statusAsString() }}
</h4>
<a
class=
"stretched-link"
href=
"{{ route('pad_view', ['id' => $userPad->id]) }}"
></a>
<a
class=
"stretched-link"
href=
"{{ route('pad_view', ['id' => $userPad->id]) }}"
></a>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment