Commit c9e3ba8d authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

add correções

parent d10c4812
......@@ -23,7 +23,7 @@ class UserPad extends Model
}
public function pad() {
return $this->belongsTo(Pad::class);
return $this->belongsTo(Pad::class, 'pad_id');
}
public function statusAsText() {
......
......@@ -15,7 +15,8 @@
<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>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment