@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('search-form')
@endsection @section('content') {{ __lang('add-video') }}
{{ formElement($text) }}
{{ formElement($sortSelect) }}


@php if(GLOBAL_ACCESS): @endphp @php endif; @endphp @php foreach ($paginator as $row): @endphp @php if(GLOBAL_ACCESS): @endphp @php endif; @endphp @php endforeach; @endphp
{{ __lang('id') }} {{ __lang('thumbnail') }} {{ __lang('Name') }} {{ __lang('Length') }} {{ __lang('size') }} {{ __lang('type') }} {{ __lang('Added On') }}{{ __lang('Created By') }}{{ __lang('Actions') }}
{{$row->id}} @php $thumb = 'uservideo/'.$row->id.'/'.fileName($row->file_name).'.jpg'; $video = 'uservideo/'.$row->id.'/'.$row->file_name; @endphp @php if(file_exists($thumb) && file_exists($video)): @endphp {{ $row->name }} @php endif; @endphp @php if(!file_exists($video)): @endphp {{ __lang('file-missing') }} @php endif; @endphp {{$row->name}} @php if(!empty($row->length)): @endphp {{ $row->length }} @php endif; @endphp @php if (!empty($row->file_size)): @endphp {{ formatSizeUnits($row->file_size) }} @php endif; @endphp {{ strtoupper(@pathinfo($row->file_name)['extension']) }} {{ showDate('d/m/Y',$row->created_at) }} {{adminName($row->admin_id)}}
@php // add at the end of the file after the table echo paginationControl( // the paginator object $paginator, // the scrolling style 'sliding', // the partial to use to render the control null, // the route to link to when a user clicks a control link array( 'route' => 'admin/default', 'controller'=>'video', 'action'=>'index', 'filter'=>$filter, 'sort'=>$sort ) ); @endphp
@endsection