@extends('web_site.layouts.master') @section('meta') @php $shareTitle = strip_tags( $one_data->title ?? config('app.name') ); $shareDescription = \Illuminate\Support\Str::limit( trim( preg_replace( '/\s+/', ' ', strip_tags($one_data->details ?? '') ) ), 180 ); $shareUrl = url()->current(); // الصورة الافتراضية $shareImage = asset('assets_web/img/newbaner/casestudies.webp'); // الصورة الرئيسية للـ Case Study if (!empty($one_data->image_path)) { $shareImage = $one_data->image_path; } elseif (!empty($one_data->images)) { // متوافق سواء images Array أو Collection $firstImage = collect($one_data->images)->first(); if ($firstImage && !empty($firstImage->image_path)) { $shareImage = $firstImage->image_path; } } // تحويل الصورة إلى رابط كامل if ( !\Illuminate\Support\Str::startsWith( $shareImage, ['http://', 'https://'] ) ) { $shareImage = asset(ltrim($shareImage, '/')); } @endphp {{ $shareTitle }} {{-- Facebook / LinkedIn / WhatsApp --}} {{-- X / Twitter --}} @endsection @section('content')
@if (isset($one_data->images) && (!empty($one_data->images)))

{{$one_data->title}}

{!! $one_data->details !!}
share post
@if(isset($recent_blogs) && $recent_blogs->count() > 0) @if(isset($recent_blogs) && $recent_blogs->count() > 0) @endif @endif @if($one_data->files)

📎 {{trans('web_site.Attached_Files')}}

@endif
@endsection @section('js_old') @endsection @section('js') @endsection