{{--

{{ __('messages.Donation') }}

--}} {{--

{{ __('messages.Your Donation has the power to transform lives, from sheltering those who have no home, to feeding families who have endured hunger for days on end. Please, donate your Zakat/Sadaqah where the need is greatest.') }}

--}} {!! $product->expenditure_sector !!}
@csrf @php $presetAmounts = $product->amount_options && $product->amount_options!='null' ? json_decode($product->amount_options, true) : '100,200,500,1000'; $presetAmounts = is_array($presetAmounts) ? $presetAmounts : explode(',', $presetAmounts); $selected = old('amount', $presetAmounts[0]); @endphp {{-- name, email, phone--}}
@foreach($presetAmounts as $btn) @endforeach Or

{{ __('messages.Alhamdulillah from now get a tax rebate by donating to MASTUL Foundation.') }} {{ __("messages.Click here for details.") }}

{!! $product->name !!}

{!! $product->short_description !!}
@php // Function to extract YouTube video ID from any valid YouTube URL function getYoutubeVideoId($url) { preg_match('/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/', $url, $matches); return $matches[1] ?? null; } // Your YouTube URL (you can also pass this from the controller) $videoUrl = $product->video_link; $videoId = getYoutubeVideoId($videoUrl); @endphp
@if($videoId)

{{ __('messages.ACTIVITIES SHOWCASING OF THE PROJECT') }}

@endif @if ($product->projectImpacts && $product->projectImpacts->isNotEmpty() )

{{ __('messages.Impacts of the Project') }}

@foreach( $product->projectImpacts->sortByDesc('order_column')->take(5) as $impact )
{{ $impact->name }}

{{ $impact->name }}

{!! \Illuminate\Support\Str::limit(strip_tags($impact->short_description), 300, '...') !!}

{{ __('messages.SeeDetails') }}
@endforeach
@endif @if($product->quran_or_hadith_reference)

{{ __('messages.Why we need to help people?') }}

{!! $product->quran_or_hadith_reference !!}
@endif {{-- //newsAndStories--}} @if ( $product->newsAndStories && $product->newsAndStories->isNotEmpty() )

{{ __('messages.Latest News') }}

@foreach( $product->newsAndStories->sortByDesc('order_column')->take(2) as $news )
{{ $news->name }}

{{ $news->name }}

{!! \Illuminate\Support\Str::limit(strip_tags($news->short_description), 300, '...') !!}

{{ __('messages.SeeDetails') }}
@endforeach
@endif
@if ($product->description)

{{ __('messages.ABOUT PROJECT') }}

{!! $product->description !!}
@endif @if( $product->workReports && $product->workReports->isNotEmpty() )

{{ __('messages.Work Report') }}

{{-- latest two items--}} @foreach( $product->workReports->sortByDesc('order_column')->take(2) as $report )

{{ $report->title }}

{!! $report->description !!}
@endforeach
@endif @if ($product->getMedia('product')->isNotEmpty())

Photo Gallery

@foreach ($product->getMedia('product') as $media) @endforeach
@endif