@extends('advertiser.layout.app') @php($user = Auth::guard('web')->user()) @section('advertiser_title', trans('landing.titles.calender')) @section('advertiser_content') @section('back_button')
@stop
map-bg
{{-- --}} @php($total_slots=0)
@php($video_ext = Config('global.video_extensions')) @php($image_ext = Config('global.image_extensions')) @if(!empty($exist_medias) && !$exist_medias->isEmpty()) @foreach ($exist_medias as $key => $exist_media) @php($info = new \SplFileInfo($exist_media->path)) @php($ext = $info->getExtension())
@if(in_array($ext,$image_ext)) @php($video = false) @php($slot_count = 1) @php($image_size = exif_read_data(public_path('uploads/items/'.$exist_media->path))) @php($width = $image_size['COMPUTED']['Width']) @php($height = $image_size['COMPUTED']['Height'])
@elseif(in_array($ext,$video_ext)) {{-- @php($file_size = File::size(public_path('uploads/items/video/'.$exist_media->path))) @php($getID3 = new \getID3) @php($file = $getID3->analyze(public_path('uploads/items/video/'.$exist_media->path))) --}} @php($duration = !empty($exist_media->duration)?date('H:i:s', strtotime($exist_media->duration)):"00:00:00") @php($duration = preg_replace("/^([\d]{1,2})\:([\d]{2})$/", "00:$1:$2", $duration)) @php(sscanf($duration, "%d:%d:%d", $hours, $minutes, $seconds)) @php($time_seconds = $hours * 3600 + $minutes * 60 + $seconds) @php($duration_actual = (date('i:s', strtotime($duration)))) @php($slot_count = $time_seconds/$slot_duration->duration) @php($video = true) @php($image_size = exif_read_data(public_path('uploads/items/video/thump/'.$exist_media->thumbnail))) @php($width = $image_size['COMPUTED']['Width']) @php($height = $image_size['COMPUTED']['Height']) {{ $exist_media->title }} {{ $exist_media->title }} {{-- --}} @endif
@if(!empty($video))
{{ trans('messages.video') }}
{{ $duration_actual }}
@else
{{ trans('messages.image') }}
@endif
{{ ceil($slot_count) }} {{ ceil($slot_count) > 1 ? trans('confirmation.library.Slots') : trans('confirmation.library.Slot') }}

Double click to delete

{{--
{{ $slot_duration->duration }} {{ trans('confirmation.select_screen.seconds') }}
{{ ceil($slot_count) }} {{ trans('confirmation.select_screen.slots') }}
--}}
@php($total_slots+=ceil($slot_count)) @endforeach @else {{--
{{ trans('confirmation.select_screen.figma_note') }}
--}} @if($user->file_upload_message_status == 0)

{{ trans('confirmation.select_screen.notice') }}

{{ trans('confirmation.select_screen.figma_note') }}

{{--
--}}
@endif @endif

{{ trans('confirmation.select_screen.upload_content') }}

@stop @section('advertiser_styles') @stop @section('advertiser_js') @include('advertiser.modules.home.js.select_content') @stop