{{-- @EXAMPLE: @includeIf('layouts.components.photoviewer', [ 'images' => [ [ 'src' => 'https://example.com/image1.jpg', 'created_at' => '2023-06-15 10:00:00', 'created_by' => 1, 'origin' => 'okis3', ], [ 'src' => 'https://example.com/image2.jpg', 'created_at' => '2023-06-15 10:00:00', 'created_by' => 1, 'origin' => 'okis3', ], ] ]) --}} @if( !empty($images) && is_array($images) ) @includeIf('layouts.components.card_header', [ 'title' => 'Bisherigen Fotos', ])
@foreach ($images as $image) @if(!empty($image['origin'])) {{ $image['otigin'] ?? '' }} @endif @if(!empty($image['created_at'])) {{ $image['created_at'] ?? '' }} {{-- {{ diff_time_to_human($image['created_at']) ?? '' }} --}} @endif @if(!empty($image['created_by'])) {{ $image['created_by'] ?? '' }} {{-- {{ User::name($image['created_by']) ?? '' }} --}} @endif @if(!empty($image['description'])) {{ $image['description'] ?? '' }} {{-- {{ User::name($image['created_by']) ?? '' }} --}} @endif @endforeach
@section('section-css') @parent @once @endonce @stop @section('section-js') @parent @once @endonce @stop @endif