Skip to content

Commit

Permalink
Merge pull request #327 from fvh-P/feature/display-double-role
Browse files Browse the repository at this point in the history
舞台作品のキャスト一覧で一人二役がある場合に対応
  • Loading branch information
miyacorata authored Sep 15, 2022
2 parents e42c41a + d2a62c3 commit d52c6cc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions resources/views/play/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,20 @@
<tr>
<td>{{ $play[$cast]['schema:name'][0] }}</td>
<td>
@if(!empty($play[$cast]['lily:performAs'][0]))
@if(!empty($play[$play[$cast]['lily:performAs'][0]]))
{{ '(' }} <a href="{{ route('lily.show', ['lily' => str_replace('lilyrdf:', '', $play[$cast]['lily:performAs'][0])]) }}">
{{ $play[$play[$cast]['lily:performAs'][0]]['schema:name'][0] }}</a> 役 )
@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]))
<a href="{{ route('lily.show', ['lily' => str_replace('lilyrdf:', '', $performAs)]) }}">
{{ $play[$performAs]['schema:name'][0] }}</a> 役
@else
{{ $performAs }}
@endif
@if(!$loop->last)
@endif
@endforeach
)
@endif
</td>
</tr>
Expand Down

0 comments on commit d52c6cc

Please sign in to comment.