@extends('admin.layouts.master') @section('content') @if(Request::segment(1)==='add-gallery') @elseif(Request::segment(1)==='edit-gallery') @endif @if(Request::segment(1)==='add-gallery')

{{__('translate.gallery_manage')}}

@csrf
{!! Form::label('title', trans('translate.gallery_title')) !!} {!! Form::text('title', '', ['class' => 'form-control','placeholder' => 'Enter Fallery Title']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('image', trans('translate.gallery_image')) !!} {!! Form::file('image', ['class' => 'form-control','placeholder' => 'Enter Gallery Title']) !!} @if ($errors->has('image')) {{ $errors->first('image') }} @endif
@elseif(Request::segment(1)==='edit-gallery')

{{__('translate.gallery_manage')}}

@csrf {!! Form::hidden('id',$id, ['class' => 'form-control']) !!}
{!! Form::label('title', trans('translate.gallery_title')) !!} {!! Form::text('title', $title, ['class' => 'form-control','placeholder' => 'Enter Fallery Title']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('image', trans('translate.gallery_image')) !!} {!! Form::file('image', ['class' => 'form-control','placeholder' => 'Enter Gallery Title']) !!} @if ($errors->has('image')) {{ $errors->first('image') }} @endif
@else
{{__('translate.gallery_manage')}}
@if($message = Session::get('success'))

{{ $message }}

@endif
S No. {{__('translate.gallery_title')}} {{__('translate.gallery_image')}} {{__('translate.action')}}
@endif @endsection @section('after-scripts') @endsection