From d2a62c3960771fce6d79bff0169ca163acc69a32 Mon Sep 17 00:00:00 2001 From: fvh_P Date: Thu, 15 Sep 2022 03:31:33 +0900 Subject: [PATCH] =?UTF-8?q?=E8=88=9E=E5=8F=B0=E4=BD=9C=E5=93=81=E3=81=AE?= =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=82=B9=E3=83=88=E4=B8=80=E8=A6=A7=E3=81=A7?= =?UTF-8?q?=E4=B8=80=E4=BA=BA=E4=BA=8C=E5=BD=B9=E3=81=8C=E3=81=82=E3=82=8B?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/play/show.blade.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/resources/views/play/show.blade.php b/resources/views/play/show.blade.php index b905036e..d1a47a6f 100644 --- a/resources/views/play/show.blade.php +++ b/resources/views/play/show.blade.php @@ -162,13 +162,20 @@ {{ $play[$cast]['schema:name'][0] }} - @if(!empty($play[$cast]['lily:performAs'][0])) - @if(!empty($play[$play[$cast]['lily:performAs'][0]])) - {{ '(' }} - {{ $play[$play[$cast]['lily:performAs'][0]]['schema:name'][0] }} 役 ) - @else - {{ '( '.$play[$cast]['lily:performAs'][0] }} 役 ) - @endif + @if(count($play[$cast]['lily:performAs']) > 0) + ( + @foreach($play[$cast]['lily:performAs'] as $performAs) + @if(!empty($play[$performAs])) + + {{ $play[$performAs]['schema:name'][0] }} 役 + @else + {{ $performAs }} 役 + @endif + @if(!$loop->last) + ・ + @endif + @endforeach + ) @endif