release
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
@extends('layouts.heading-home')
|
||||
|
||||
@section('css')
|
||||
<link href="assets/css/index.css" rel="stylesheet" />
|
||||
<link href="/assets/css/index.css" rel="stylesheet" />
|
||||
@endsection
|
||||
|
||||
@section('main')
|
||||
@ -39,13 +39,38 @@
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$img_src2 = '';
|
||||
$imgs2 = $row->featured_photos;
|
||||
if ($imgs2 && count($imgs2) > 0)
|
||||
{
|
||||
foreach($imgs2 as $img)
|
||||
{
|
||||
// $img_memo = $img['comment'];
|
||||
$img_src2 = URL::asset('/storage/'.$img['file_path']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
<div class="carousel-item {{ $i == 0 ? 'active' : '' }}">
|
||||
<img src="{{ $img_src }}" alt="" width="100%" height="auto">
|
||||
<div class="carousel-caption">
|
||||
<h2 class="animate__animated animate__fadeInUp">{{ $row->title }}</h2>
|
||||
<p class="animate__animated animate__fadeInUp">{{ $row->body }}</p>
|
||||
<div class="animate__animated animate__fadeInUp"><a href="{{ $row->link }}">DETAIL</a></div>
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6">
|
||||
<div class="caption-txt">
|
||||
<h2 class="animate__animated animate__fadeInUp">{{ $row->title }}</h2>
|
||||
<p class="animate__animated animate__fadeInUp">{{ $row->body }}</p>
|
||||
<div class="animate__animated animate__fadeInUp"><a href="{{ $row->link }}">DETAIL</a></div>
|
||||
</div>
|
||||
</div>
|
||||
@if ($img_src2 != '')
|
||||
<div class="col-md-6">
|
||||
<div class="caption-img">
|
||||
<img src="{{ $img_src2 }}" alt="" width="auto" height="auto" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@php
|
||||
@ -129,7 +154,8 @@
|
||||
@endphp
|
||||
<div class="news-item">
|
||||
<time>{{ date('Y-m-d', strtotime($row->post_at)) }}</time>
|
||||
<p><a href="/events/detail/{{ $row->id }}">{{ $row->title }}</a></p>
|
||||
<h5><a href="/events/detail/{{ $row->id }}">{{ $row->title }}</a></h5>
|
||||
<p>Date: {{ date('Y-m-d', strtotime($row->event_at)) }}</p>
|
||||
</div>
|
||||
@php
|
||||
$i++;
|
||||
@ -173,11 +199,6 @@
|
||||
$i++;
|
||||
}
|
||||
@endphp
|
||||
<div class="news-item">
|
||||
<time>2024-01-17</time>
|
||||
<h4><a href="news.php">Cambrios insists on the most powerful patents and defends</a></h4>
|
||||
<p>2020 is a year full of tests and challenges. The international epidemic ... </p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news-btn"><a href="/news">More News</a></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user