質問編集履歴
1
遷移先のファイル
test
CHANGED
File without changes
|
test
CHANGED
@@ -261,3 +261,133 @@
|
|
261
261
|
|
262
262
|
|
263
263
|
初歩的な問題ですが回答いただければ幸いです。
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
##追記
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
viewで指定した、ページは以下のコードになっています
|
274
|
+
|
275
|
+
もし、心当たりがありましたら、ご指摘いただければ幸いです。
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
```
|
280
|
+
|
281
|
+
@extends('layouts.app')
|
282
|
+
|
283
|
+
@include('navbar')
|
284
|
+
|
285
|
+
@include('footer')
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
@section('content')
|
290
|
+
|
291
|
+
@foreach ($posts as $post)
|
292
|
+
|
293
|
+
<div class="col-md-8 col-md-2 mx-auto">
|
294
|
+
|
295
|
+
<div class="card-wrap">
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<div class="card">
|
300
|
+
|
301
|
+
<div class="card-header align-items-center d-flex">
|
302
|
+
|
303
|
+
<a class="no-text-decoration" href="/users/{{ $post->user->id }}">
|
304
|
+
|
305
|
+
@if ($post->user->profile_photo)
|
306
|
+
|
307
|
+
<img class="post-profile-icon rounded" src="{{ asset('storage/user_images/' . $post->user->profile_photo) }}"/>
|
308
|
+
|
309
|
+
@else
|
310
|
+
|
311
|
+
<img class="post-profile-icon rounded" src="{{ asset('/images/blank_profile.png') }}"/>
|
312
|
+
|
313
|
+
@endif
|
314
|
+
|
315
|
+
</a>
|
316
|
+
|
317
|
+
<a class="black-color no-text-decoration" title="{{ $post->user->name }}" href="/users/{{ $post->user->id }}">
|
318
|
+
|
319
|
+
<strong>{{ $post->user->name }}</strong>
|
320
|
+
|
321
|
+
</a>
|
322
|
+
|
323
|
+
@if ($post->user->id == Auth::user()->id)
|
324
|
+
|
325
|
+
<a class="ml-auto mx-0 my-auto" rel="nofollow" href="/postsdelete/{{ $post->id }}">
|
326
|
+
|
327
|
+
<div class="delete-post-icon">
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
</a>
|
332
|
+
|
333
|
+
@endif
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
<!--ヘッダーに対して、いいねのアイコンと、保存ボタンを追加する-->
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
</div>
|
344
|
+
|
345
|
+
<div class="card-body d-flex">
|
346
|
+
|
347
|
+
<div class="card-body-left">
|
348
|
+
|
349
|
+
<a href="/users/{{ $post->user->id }}"> <!--遷移先を詳細画面にする-->
|
350
|
+
|
351
|
+
<img src="/storage/post_images/{{ $post->id }}.jpg" class="card-img-top" />
|
352
|
+
|
353
|
+
</a>
|
354
|
+
|
355
|
+
</div>
|
356
|
+
|
357
|
+
<div class="card-body-right ml-5 mt-2">
|
358
|
+
|
359
|
+
<div class="card-text d-block">
|
360
|
+
|
361
|
+
<p><strong>施設名・住所</strong></p>
|
362
|
+
|
363
|
+
<span>{{ $post->place }}</span>
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
<div class="card-title d-block mt-5">
|
368
|
+
|
369
|
+
<p><strong>説明</strong></p>
|
370
|
+
|
371
|
+
<span>{{ $post->caption }}</span>
|
372
|
+
|
373
|
+
</div>
|
374
|
+
|
375
|
+
</div>
|
376
|
+
|
377
|
+
</div>
|
378
|
+
|
379
|
+
</div>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
</div>
|
384
|
+
|
385
|
+
</div>
|
386
|
+
|
387
|
+
@endforeach
|
388
|
+
|
389
|
+
@endsection
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
```
|