@extends('layouts.master') @section('title',__('Edit Block')) @section('breadcum') @endsection @section('maincontent')
@if ($errors->any()) @endif
{{ __('Back') }}
{{__('Edit Block')}}
{!! Form::model($landing_page, ['method' => 'PATCH', 'action' => ['LandingPageController@update', $landing_page->id], 'files' => true]) !!}
{!! Form::label('heading', __('Heading')) !!} {!! Form::text('heading', null, ['class' => 'form-control']) !!} {{ $errors->first('heading') }}
{!! Form::label('detail', __('Detail')) !!} {!! Form::textarea('detail', null, ['class' => 'form-control materialize-textarea']) !!} {{ $errors->first('detail') }}
{!! Form::label('button', __('Button')) !!}
{{ $errors->first('button') }}
{!! Form::label('button_link', __('Button Link')) !!}
{!! Form::checkbox('button_link', 1, ($landing_page->button_link == 'login' ? 1 : 0), ['class' => 'custom_toggle']) !!}
{{ $errors->first('button_link') }}
{!! Form::label('button_text', __('ButtonText')) !!} {!! Form::text('button_text', null, ['class' => 'form-control']) !!} {{ $errors->first('button_text') }}
{{__('Image Position')}}
{!! Form::checkbox('left', 1, $landing_page->left, ['class' => 'custom_toggle']) !!}
{{ $errors->first('left') }}
{!! Form::label('image', 'Image') !!}

{!! Form::file('image', ['class' => 'input-file', 'id'=>'image']) !!}

{{__('ChooseAImage')}}

{{ $errors->first('image') }}
{!! Form::close() !!}
@endsection @section('script') @endsection