@extends('admin.layouts.app') @section('title', 'Edit Banner') @section('content')
Edit Banner
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@method('PUT')
@php $thumb = null; if ($banner->media_type == IMAGE) { $thumb = $banner->media_path; } elseif ($banner->media_type == VIDEO) { $thumb = $banner->video_poster; } @endphp @if ($thumb) Banner Thumbnail @else No media @endif
{{-- sort order --}}
@endsection @section('scripts') @endsection