@extends('layouts/app') @section('css') @stop @section('content')

Update Image/Video

@if(Session::has('error'))
Errors!
@foreach(Session::get('error') as $err) {{ $err }}
@endforeach @php Session::forget('error'); @endphp
@endif
@csrf
Banner Name:
all_branch == 1 || !$errors->has('branches')) checked @endif id="all_branch"> All all_branch == 0 || $errors->has('branches')) checked @endif id="selectedbranch"> Selected Branches
* @if ($errors->has('branches')) {{ $errors->first('branches') }} @endif
item_type == 'image') checked @endif id="imageCheckbox"> Image item_type == 'video') checked @endif id="videoCheckbox"> Video
Note:
- Please ensure the file is a valid image file (JPG/JPEG/PNG/GIF).
- Uploaded image will replace existing one.
- Image File Size is limited to a maximum of 20MB only.
Note:
- Please ensure the video is a valid video (MP4/MKV/WEBM).
- Uploaded video will replace existing one.
- Image File Size is limited to a maximum of 30MB only.
@if ($errors->has('item_type')) {{ $errors->first('item_type') }} @endif
*
@if ($errors->has('fileUpload')) {{ $errors->first('fileUpload') }} @endif
@php if (env('S3_ENABLED') && $item->s3_key) { $url = Storage::disk('s3')->temporaryUrl($item->s3_key, now()->addMinutes(decrypt(env('AWS_FILE_EXPIRED_TIME')))); } else { $url = Storage::disk('local_upload')->url($item->item_url); } @endphp preview image
@endsection @section('js') @stop