@extends('layouts.app') @section('content') @php use Carbon\Carbon; $slider = null; if (!empty($sliders) && $sliders->count() > 0) { $dayIndex = ((Carbon::now()->day - 1) % $sliders->count()); // صفر-مبنا برای آرایه $slider = $sliders[$dayIndex]; } @endphp
@if ($slider)

{{ $slider->title }}

{!! $slider->description !!}

@if ($slider->button_link)
{{ $slider->button }} @endif @if ($slider->media) Slider Image @endif
@endif @if ($clients)

Some of our trusted clients

@endif

We take care
of your business

All category
@foreach ($categories as $category)

{{ $category->name }}

{!! Str::limit($category->description, 100, '...') !!}

@endforeach
@if ($cta)

{{ $cta->title }}

{!! $cta->text !!}

{{ $cta->button }}
@endif {{--

Our latest Articles

All category
@foreach ($blogs as $blog)

{{$blog->title}}

{!! Str::words($blog->body, 10, '...') !!}

@endforeach
--}}