@extends('layouts.admin') @section('styles') @endsection @section('content')

{{$gallery->name}} {{ucfirst($gallery->type)}}

@csrf @if (session('success'))
{!! session('success') !!}
@endif @if (session('status'))
{!! session('status') !!}
@endif @if(!count($gallery->images))
@if ($errors->has('file')) {{ $errors->first('file') }} @else
{{$gallery->type == 'image' ? '800px(w) by 600px(h)' : ''}} @endif
@if($gallery->type=='video')
@if ($errors->has('file')) {{ $errors->first('file') }} @else
200px(w) by 150px(h) @endif
@endif @else @endif
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
@if ($errors->has('heading')) {{ $errors->first('heading') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@endsection @section('javascript') @endsection