@if(Auth::check() && (Auth::user()->is_admin)
<p><a href="#" class="btn btn-success" role="button">Редактировать</a> <a href="#" class="btn btn-danger" role="button">Удалить</a></p>
@endif
public function photos(){
return $this->hasMany(Photo::class);
}
redirect()->with('success', '...')
@foreach($categories as $category)
<div class="slider-title clients-row">{{ $category['title'] }} <span class="plus">+</span></div>
<div class="slider-content">
<ul>
@foreach($category->clients as $client)
<li><span>{{ $client['title'] }}</span></li>
@endforeach
</ul>
</div>
@endforeach