@extends('admin.master') @if(isset($editModeData)) @section('title','Edit brand') @else @section('title','Add brand') @endif @section('content')
@yield('title')
@if(isset($editModeData)) {{ Form::model($editModeData, array('route' => array('brand.update', $editModeData->id), 'method' => 'PUT','files' => 'true','class' => 'form-horizontal')) }} @else {{ Form::open(array('route' => 'brand.store','enctype'=>'multipart/form-data','class'=>'form-horizontal')) }} @endif
@if($errors->any()) @endif @if(session()->has('success'))
 {{ session()->get('success') }}
@endif @if(session()->has('error'))
 {{ session()->get('error') }}
@endif
{!! Form::text('title',Input::old('title'), $attributes = array('class'=>'form-control required ','id'=>'title','placeholder'=>'Enter brand title')) !!}
@if(isset($editModeData)) @if($editModeData->image !='' && file_exists(public_path('uploads/brand/'.$editModeData->image)))
brand image
@else
brand image
@endif @endif
{{ Form::checkbox('is_ecom_show', '1') }}
@if(isset($editModeData)) @else @endif
{{ Form::close() }}
@endsection