Skip to content

Commit

Permalink
fix title kuisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
akechi17 committed Aug 13, 2024
1 parent 91f63eb commit ef8e5a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions app/Models/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class News extends Model
'user_id',
'newsable_id',
'newsable_type',
'image_url'
];

protected $appends = [
'image_url',
];

protected static function booted()
Expand All @@ -41,6 +46,11 @@ protected static function booted()
});
}

public function getImageUrlAttribute()
{
return $this->image ? url($this->image) : null;
}

public function user()
{
return $this->belongsTo(User::class);
Expand Down
2 changes: 1 addition & 1 deletion client
Submodule client updated from 71d208 to 2b67c7
2 changes: 1 addition & 1 deletion resources/views/reviews/users/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('layouts.dashboard')

@section('dashboard-content')
<x-form.form formTitle="Kuisioner" formMethod="POST" spoofMethod="PUT" formAction="{{ route('reviews.users.update') }}" roleEdit="admin super-admin mentor manager">
<x-form.form formTitle="Kuisioner {{ $user->name }}" formMethod="POST" spoofMethod="PUT" formAction="{{ route('reviews.users.update') }}" roleEdit="admin super-admin mentor manager">
<x-slot:formBody>
@foreach ($reviews as $review)
<input type="hidden" name="reviews[id][]" value="{{ $review->id }}">
Expand Down

0 comments on commit ef8e5a5

Please sign in to comment.