@extends('layouts.marketplace') @section('title', 'Edit Post') @section('mobile_header')
arrow_back

Edit Post

@include('pharmacy.partials.notifications_icon')
@endsection @section('mobile_content')
@if($errors->any())
Please fix the following:
@endif
@csrf @method('PUT')
@if($post->video_url) play_circle Open Video @endif @php $existingMediaPaths = is_array($post->media_paths) && count($post->media_paths) > 0 ? $post->media_paths : ($post->image_path ? [$post->image_path] : []); @endphp @if(count($existingMediaPaths) > 0)
@foreach($existingMediaPaths as $path) @php $isPdf = \Illuminate\Support\Str::endsWith(strtolower($path), '.pdf'); @endphp @if($isPdf) picture_as_pdf Open PDF @else
Post image
@endif @endforeach
@endif
@csrf @method('DELETE')
@endsection @section('desktop_content')
@if($errors->any())
Please fix the following:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@if($post->video_url) play_circle Open Video @endif @php $existingMediaPaths = is_array($post->media_paths) && count($post->media_paths) > 0 ? $post->media_paths : ($post->image_path ? [$post->image_path] : []); @endphp @if(count($existingMediaPaths) > 0)
@foreach($existingMediaPaths as $path) @php $isPdf = \Illuminate\Support\Str::endsWith(strtolower($path), '.pdf'); @endphp @if($isPdf) picture_as_pdf Open PDF @else
Post image
@endif @endforeach
@endif
@csrf @method('DELETE')
@endsection