@if(sizeof($data['images']) > 0)
@if($data['product']->image_gif == '' && ($data['product']->type == 'variation' || count($data['images']) > 1))
@endif
@endif
{!! Form::open(array('route' => ['admin.product.upload.files', $data['product']->id], 'method' => 'POST', 'files' => true)) !!}
@method('PATCH')
@csrf
Upload Images
{!! Form::file('images', ['class'=>'form-control', 'placeholder'=>'Select pictures ...', 'name' => 'images[]', 'accept' => 'image/*', 'multiple' => 'multiple']) !!}
You can select and upload multiple files.
{!! Form::hidden('type', 'images') !!}
{!! Form::close() !!}
@if(sizeof($data['videos']) > 0)
{!! Form::open(array('route' => ['admin.product.update.files', $data['product']->id], 'method' => 'POST', 'files' => true)) !!}
@method('PATCH')
@csrf
Thumbnail |
Title |
Video |
Delete |
@foreach($data['videos'] as $video)
@php
if(trim($video->video_thumbnail) != null)
$path = '/up_data/products/videos/thumbnails/'.$video->video_thumbnail;
else
$path = '/up_data/na.jpg';
@endphp
|
{!! Form::text('title', empty($video->title) ? $video->name : $video->title,['class'=>'form-control', 'name' => 'title[]']) !!}
{!! Form::hidden('id[]', $video->id) !!}
|
Play Video |
|
@endforeach
{!! Form::hidden('type', 'videos') !!}
{!! Form::close() !!}
@endif
{!! Form::open(array('route' => ['admin.product.upload.files', $data['product']->id], 'method' => 'POST', 'files' => true)) !!}
@method('PATCH')
@csrf
Upload Videos
{!! Form::file('videos', ['class'=>'form-control', 'placeholder'=>'Select videos ...', 'name' => 'videos[]', 'accept' => 'video/*', 'multiple' => 'multiple']) !!}
You can select and upload multiple files.
{!! Form::hidden('type', 'videos') !!}
{!! Form::close() !!}
@if(sizeof($data['files']) > 0)
{!! Form::open(array('route' => ['admin.product.update.files', $data['product']->id], 'method' => 'POST')) !!}
@method('PATCH')
@csrf
File Title |
Open File |
Delete |
@foreach($data['files'] as $file)
{!! Form::text('title', empty($file->title) ? $file->name : $file->title,['class'=>'form-control', 'name' => 'title[]']) !!}
{!! Form::hidden('id[]', $file->id) !!}
|
Open File |
|
@endforeach
{!! Form::hidden('type', 'files') !!}
{!! Form::close() !!}
@endif
{!! Form::open(array('route' => ['admin.product.upload.files', $data['product']->id], 'method' => 'POST', 'files' => true)) !!}
@method('PATCH')
@csrf
Upload Files
{!! Form::file('files', ['class'=>'form-control', 'placeholder'=>'Select files ...', 'name' => 'files[]', 'accept' => '.xlsx,.xls,.doc,.docx,.ppt,.pptx,.pdf', 'multiple' => 'multiple']) !!}
You can select and upload multiple files.
{!! Form::hidden('type', 'files') !!}
{!! Form::close() !!}
@if($data['product']->type == 'variation')
@endif
@if($data['product']->is_set == 'Y')