@forelse ($data as $mockup) @php $images = collect($mockup->getMedia('mockups')) ->groupBy(fn($media) => strtolower($media->getCustomProperty('side'))) ->mapWithKeys(function ($group, $side) { $base = $group->first(fn($m) => $m->getCustomProperty('role') === 'base'); return [ $side => [ 'base_url' => $base?->getFullUrl(), ], ]; }); @endphp
Created at: {{ $mockup->created_at->format('d/m/Y') }}
Last update: {{ $mockup->updated_at->format('d/m/Y') }}
Nothing to show yet.