{{-- resources/views/instagram/posts/edit.blade.php --}} تعديل المحتوى - إنستقرام

تعديل المحتوى

تعديل محتوى {{ $post->media_type === 'STORY' ? 'الستوري' : ($post->media_type === 'REEL' ? 'الريل' : ($post->media_type === 'CAROUSEL_ALBUM' ? 'الكاروسيل' : 'المنشور')) }} - {{ $post->status === 'draft' ? 'مسودة' : 'مجدول' }}

معلومات المحتوى الحالي:
النوع: {{ $post->media_type === 'STORY' ? 'ستوري' : ($post->media_type === 'REEL' ? 'ريل' : ($post->media_type === 'CAROUSEL_ALBUM' ? 'كاروسيل' : 'منشور عادي')) }} | الملفات: {{ count($post->media_files) }} ملف | تاريخ الإنشاء: {{ $post->created_at->format('Y-m-d H:i') }} @if($post->scheduled_at) | موعد النشر المجدول: {{ \Carbon\Carbon::parse($post->scheduled_at)->format('Y-m-d H:i') }} @endif
@csrf @method('PUT')
@error('instagram_account_id')

{{ $message }}

@enderror
@switch($post->media_type) @case('STORY')
ستوري
يختفي بعد 24 ساعة
@break @case('REEL')
ريلز
فيديو قصير ترفيهي
@break @case('CAROUSEL_ALBUM')
كاروسيل
عدة صور أو فيديوهات
@break @default
منشور
صورة أو فيديو في الفيد
@endswitch
@foreach($post->media_files as $index => $file) @php $fileUrl = Storage::url($file); $mimeType = Storage::disk('public')->mimeType($file); $isVideo = str_starts_with($mimeType, 'video/'); @endphp
@if($isVideo)
@else Media {{ $index + 1 }} @endif {{ $index + 1 }} @if($isVideo) فيديو @endif
@endforeach
اترك فارغاً للاحتفاظ بالملفات الحالية، أو اختر ملفات جديدة لاستبدالها
@error('media_files')

{{ $message }}

@enderror @error('media_files.*')

{{ $message }}

@enderror
استخدم نص جذاب لزيادة التفاعل {{ strlen($post->caption) }}/2200
@error('caption')

{{ $message }}

@enderror
@if($post->media_type !== 'STORY')
يمكنك إضافة حتى 30 هاشتاج. اكتبها بدون # وافصلها بفواصل
@error('hashtags')

{{ $message }}

@enderror
@endif
status === 'scheduled' || old('scheduled_at') ? 'checked' : '' }}>
@error('scheduled_at')

{{ $message }}

@enderror
معاينة المحتوى