@extends('layouts.admin') @section('content-title') {{ __('media.Media Manager') }} @endsection @section('content-breadcrumbs') {{ Breadcrumbs::render('admin.media')}} @endsection @section('css') @endsection @section('content') @if(session()->has('success')) @endif @if(session()->has('deleted')) @endif
{!!Form::open()->locale('media')->post()->multipart()->route('admin.media.save')!!}
{!!Form::submit('Save')->id('my-btn')!!}
{!!Form::close()!!}
@if($mediadata->isEmpty())

{{ __('media.No media to load') }}

@endif
@foreach($mediadata as $key => $item)
{{-- --}} @php $extention_img=['jpeg ','jpg','png','svg']; if(in_array($item->file_extension,$extention_img)) { echo ""; } else { echo ""; echo "
.$item->file_extension
"; } @endphp {!!Form::open()->post()->route('admin.media.delete')->attrs(['style'=>'display:inline','class'=>'deleteMedia'])!!} {!!Form::hidden('id')->value($item->id)!!} {!!Form::close()!!}
{{--
{{ $item->title }}
--}}

{{str_limit($item->title,45)}}

{{ url('/') }}/uploads/media/{{$item->url}}.{{$item->file_extension}}

@endforeach
@endsection @section('javascript') {{-- placeholder the name of the file --}} {{-- Check file ,hide alert --}} {{-- copy link --}} {{-- tooltip --}} @endsection