Roman_applicant-site/resources/views/admin/news/show.blade.php

14 lines
394 B
PHP

@extends('layouts.admin_layout')
@section('content')
@auth()
<div class="container mt-4">
<h2>Название</h2>
<p>{{ $news->name }}</p>
<h2>Текст</h2>
<p>{{ $news->text }}</p>
<h2>Фото</h2>
<img src="{{ asset($news->photo) }}" alt="фото статьи">
</div>
@endauth
@endsection