@extends('backEnd.master')
@section('title')
@lang('downloadCenter.content_list')
@endsection
@push('css')
@endpush
@section('mainContent')
@lang('common.search')
@if (isset($editContent))
@lang('downloadCenter.edit_content')
@else
@lang('downloadCenter.add_content')
@endif
(jpg,png,jpeg,pdf,doc,docx,txt,xlsx,rar,zip are allowed for
upload)
@lang('downloadCenter.content_list')
@foreach (@$contents as $key => $content)
@php
$fileSize = '';
$dataUnit = '';
if ($content->file_size < 1000000) {
$fileSize = $content->file_size / 1000;
$dataUnit = 'KB';
} else {
$fileSize = $content->file_size / 1000000;
$dataUnit = 'MB';
}
@endphp
@lang('downloadCenter.sl')
@lang('downloadCenter.document')
@lang('downloadCenter.content_type')
@lang('downloadCenter.size')
@lang('downloadCenter.uploaded_by')
@lang('downloadCenter.created_on')
@lang('downloadCenter.action')
{{ $key + 1 }}
{{ $content->file_name }}
{{ $content->contentType->name }}
{{ number_format($fileSize, 2, '.', ',') }} {{ $dataUnit }}
{{ $content->user->full_name }}
{{ $content->created_at }}