update
							parent
							
								
									eb32973330
								
							
						
					
					
						commit
						f7fadc89e7
					
				|  | @ -6,7 +6,7 @@ | |||
| 		<h4 class="text-lg md:text-2xl font-extrabold text-black">Kegiatan Sekolah Adiwiyata</h4> | ||||
| 	</div> | ||||
| 	<div class="flex flex-row"> | ||||
| 		<div class="grid grid-rows-1 md:grid-cols-3 lg:grid-cols-4 gap-5"> | ||||
| 		<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-5"> | ||||
| 			@foreach($kegiatan as $dataKeg) | ||||
| 				<?php | ||||
| 				        $image = json_decode($dataKeg->image); | ||||
|  | @ -18,13 +18,9 @@ | |||
| 							<span class="p-2 bg-warning text-xs rounded-[10px] text-white">Kegiatan {{ $dataKeg->kategori }}</span> | ||||
| 							<span class="text-xs opacity-[50%]">{{ date('D',strtotime($dataKeg->created_at)) }}, {{ date('d M Y',strtotime($dataKeg->created_at)) }}</span> | ||||
| 						</div> | ||||
| 						<h4 class="text-md text-black font-bold mt-2">{{ $dataKeg->judul }}</h4> | ||||
| 						<div class="text-xs opacity-[50%]"> | ||||
| 							{!! substr(strip_tags($dataKeg->body),0,200) !!} | ||||
| 						</div> | ||||
| 						<a href="{{ url('kegiatan/'.$dataKeg->slug) }}" class="text-sm text-warning rounded-[10px] mx-auto md:mx-0 flex flex-row gap-3 "> | ||||
| 							<span>Baca Selengkapnya</span> <x-lucide-arrow-right width="20" class="text-warning"/> | ||||
| 						</a> | ||||
| 						<h4 class="text-[15px] text-black font-reguler mt-2"> | ||||
| 							<a href="{{ url('kegiatan/'.$dataKeg->slug) }}">{{ $dataKeg->judul }}</a> | ||||
| 						</h4> | ||||
| 					</div>	     | ||||
| 				</div>	 | ||||
| 			@endforeach | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue