@if(true)
@foreach (Arr::get($payload, 'works', []) as $work)
@if(Arr::get($payload, 'subview', '') == 'detail')
@php
$provenances = App\Models\Work::getProvenancesNotOwner($work);
$exhibitions = App\Models\Work::getExhibitions($work);
$literatures = App\Models\Work::getLiteratures($work);
@endphp
@include('pages.partials.detail', ['work' => $work, 'provenances' => $provenances, 'exhibitions' => $exhibitions, 'literatures' => $literatures, 'subview' => $subview])
@else
@include('pages.partials.list-2')
@endif
@endforeach
@endif