File tree Expand file tree Collapse file tree
views/v3/partials/schema/event Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- @card ([
2- ' heading' => $lang -> occasionsTitle
3- ] )
4- @slot (' aboveContent' )
5- @if (! empty ($currentOccasion ) )
1+ @card ([] )
2+ @card__header ([] )
3+ @typography ([
4+ ' element' => ' h2' ,
5+ ' variant' => ' h3'
6+ ] )
7+ {{ $lang -> occasionsTitle } }
8+ @endtypography
9+ @endcard__header
10+
11+ @if (! empty ($currentOccasion ) )
12+ @card__body ([] )
613 @typography ([
714 ' classList' => [
815 ' u-display--flex' ,
916 ' u-align-items--center' ,
1017 ' o-layout-grid--gap-2'
18+ ],
19+ ' attributeList' => [
20+ ' style' => ' margin-left: -3px;'
1121 ]
1222
1323 ] )
2838 {!! $currentOccasion -> getStartDate () ! !} - {!! $currentOccasion -> getEndTime () ! !}
2939 @endtypography
3040 @endtypography
31- @endif
41+ @endcard__body
42+ @endif
3243
33- @if (! empty ($occasions ) && count ($occasions ) > 1 )
34- @accordion ([] )
35- @accordion__item ([
36- ' heading' => $lang -> moreOccasions
44+ @if (! empty ($occasions ) && count ($occasions ) > 1 )
45+ @accordion ([] )
46+ @accordion__item ([
47+ ' heading' => $lang -> moreOccasions ,
48+ ' attributeList' => [
49+ ' style' => ' --c-accordion--inset-padding-x: 0;'
50+ ]
51+ ] )
52+ @collection ([
53+ ' compact' => true
3754 ] )
38- @collection ([
39- ' compact' => true
55+ @foreach ($occasions as $occasion )
56+ @if (! $occasion -> isCurrent () )
57+ @collection__item ([
58+ ' link' => $occasion -> getUrl (),
59+ ' icon' => ' chevron_forward' ,
60+ ' iconLast' => true
4061 ] )
41- @foreach ($occasions as $occasion )
42- @if (! $occasion -> isCurrent () )
43- @collection__item ([
44- ' link' => $occasion -> getUrl (),
45- ' icon' => ' chevron_forward' ,
46- ' iconLast' => true
47- ] )
48- @typography ([
49- ' element' => ' span' ,
50- ] )
51- {!! $occasion -> getStartDate () ! !} - {!! $occasion -> getEndTime () ! !}
52- @endtypography
53- @endcollection__item
54- @endif
55- @endforeach
56- @endcollection
57- @endaccordion__item
58- @endaccordion
59- @endif
60- @endslot
62+ @typography ([
63+ ' element' => ' span' ,
64+ ] )
65+ {!! $occasion -> getStartDate () ! !} - {!! $occasion -> getEndTime () ! !}
66+ @endtypography
67+ @endcollection__item
68+ @endif
69+ @endforeach
70+ @endcollection
71+ @endaccordion__item
72+ @endaccordion
73+ @endif
6174@endcard
You can’t perform that action at this time.
0 commit comments