@extends('../../master_layout/website_master') @section('title') {{env('APP_NAME')}} :: Profile Media @endsection @section('custom_css') @endsection @section('heading')

Upload Media - {{$profile->display_name}}

@php if($edit) { $breadcrumb = array( array('title'=>'My Profiles', 'url'=>route('profile')), array('title'=>$profile->display_name, 'url'=>route('profile.link',['slug'=>$profile->slug])), array('title'=> 'Edit Profile', 'url'=>'', 'active'=>'1') ); } else { $breadcrumb = array( array('title'=>'My Profiles', 'url'=>route('profile')), array('title'=> 'Add Profile', 'url'=>'', 'active'=>'1') ); } @endphp @include('website_view.component.breadcrumb', compact("breadcrumb"))
@endsection @section('content')
@if (session('errors'))
@foreach($errors->all() as $message)
  • {{$message}}
  • @endforeach
    @endif
    @if (session('message'))
    @endif
    @csrf

    Upload Photos (@if(isset($images) && !empty($images)) {{count($images)}} @else 0 @endif / 15)

    Please upload high-quality images only. Only post pictures of yourself or of a person who has given you explicit permission to do so. If you post fake photos, your profile will be deleted and your account blocked - more information.
    New rule: Photos with full frontal nudity, genitalia or sexually explicit conduct are prohibited.

    @php $preload_images = array(); if(isset($images) && !empty($images)){ foreach($images as $image){ $file = getStorageFile(config('path.escort').$image->advertiser_id.'/'.$image->advertiser_image_url, 'b2'); if($image->is_main == 1 ){ $is_main = 'checked'; } else { $is_main = ''; } $preload_images[] = array( 'name' => $image->advertiser_image_url, 'type' => "image/webp", 'size' => 0, 'file' => $file, 'data' => array('advertiser_image_id' => $image->advertiser_image_id, 'is_main' => $is_main) ); } } @endphp
    Maximum 15 files are allowed to upload.

    Add Video

    video_url)) style="display:none;" @endif>
    video_url) && $profile->video_url !='') style="display:none;" @endif> @php $preload_video = array(); if(isset($profile->video_file) && $profile->video_file !='') { $file = getStorageFile(config('path.escort').$profile->advertiser_id.'/video/'.$profile->video_file, 'b2'); //$file = asset('public/uploads/temp/file_example1_MP4_480_1_5MG.mp4'); $preload_video[] = array( 'name' => $profile->video_file, 'type' => "video/mp4", 'size' => 0, 'file' => $file, 'data' => array('advertiser_id' => $profile->advertiser_id, 'readerCrossOrigin' => 'anonymous') ); } @endphp
    Allowed file types are MP4 and file size max 50MB.
    @endsection @section('custom_js') @endsection