@extends('backend.layouts.layout-2') @if($edit) @section('page-title', trans('app.edit_attribute')) @section('page-heading', trans('app.edit_attributes')) @else @section('page-title', trans('app.add_attribute')) @section('page-heading', trans('app.add_attribute')) @endif @section('styles') @parent @endsection @section('scripts') @parent @endsection @section('content') @if($edit) {!! Form::open(['route' => ['attributes.update',$attribute->id], 'method' => 'PUT','files' => true, 'id' => 'belongsTo_type-form']) !!} @else {!! Form::open(['route' => 'attributes.store', 'files' => true, 'id' => 'belongsTo_type-form']) !!} @endif
@lang('app.belongsTo_type_details')
{!! Form::text('name',$edit ? $attribute->name : old('name'),['class' => 'form-control','placeholder' => trans('app.name')]) !!}
{!! Form::text('type',$edit ? $attribute->type : old('type'),['class' => 'form-control','placeholder' => trans('app.type')]) !!}
{!! Form::text('belongsTo_type',$edit ? $attribute->belongsTo_type : old('belongsTo_type'),['class' => 'form-control','placeholder' => trans('app.belongsTo_type')]) !!}
{!! Form::close() !!} @stop