first commit
This commit is contained in:
53
resources/views/notices.blade.php
Normal file
53
resources/views/notices.blade.php
Normal file
@ -0,0 +1,53 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 main-area">
|
||||
<h1 style="text-align: center;">
|
||||
注意事項
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:20px;"> </div>
|
||||
|
||||
@php
|
||||
foreach ($dataRows as $row)
|
||||
{
|
||||
$img_memo = '';
|
||||
$img_src = '/assets/img/news-item-a01.jpg';
|
||||
$imgs = $row->photos;
|
||||
// $imgs = array_filter($row['photos'], function($v) {
|
||||
// return $v['is_selected'] == true;
|
||||
// });
|
||||
if (count($imgs) > 0)
|
||||
{
|
||||
foreach($imgs as $img)
|
||||
{
|
||||
//$img_memo = $img['comment'];
|
||||
$img_src = URL::asset('/storage/'.$img['file_path']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 main-area">
|
||||
<h2>{{ $row->title }}</h2>
|
||||
<h5>發佈時間 <time>{{ date('Y-m-d h:i', strtotime($row->post_at)) }}</time></h5>
|
||||
<img src="{{ $img_src }}" alt="{{ $img_memo }}" width="100%" height="auto">
|
||||
<p> </p>
|
||||
<div>
|
||||
{!! $row->body !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 20px;"> </div>
|
||||
@php
|
||||
}
|
||||
@endphp
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
Reference in New Issue
Block a user