@extends('admin.layouts.master') @section('content')

{!! __('heading.edit_gallery') !!}

{!! Form::model($result, ['route' => ['admin.gallery.update', $result->id], 'method' => 'patch', 'id' => 'ajax-submit']) !!}
{!! Form::label('gallery_location', __('field.gallery_location')) !!} {!! Form::select('gallery_location', galleryLocation(),null, ['class' => 'form-control gallery_location']) !!}
{!! Form::label('media_type', __('field.media_type')) !!} {!! Form::select('media_type',mediaType(),null,['class'=>'form-control media_type __media_type','data-route' => route('admin.get-gallery-folder')]) !!}
@php $path = ''; if(isset($folder_name)){ $path = GALLERY_IMAGE_PATH.$folder_name.'/'; } @endphp
{!! Form::label('status', __('field.status')) !!} {!! Form::select('status', status(), 1, ['class' => 'form-control']) !!}
{!! Form::close() !!}
@endsection @section('script') @endsection