@extends('main') @section('content')

Add Design Type

@if(isset($design)) {!! Form::model($design, ['method' => 'PATCH', 'action' => ['CarpetDesignController@update', $design->idCarpetDesign], 'class' => 'form-horizontal']) !!} @else {!! Form::open(['url' => 'design-types', 'class' => 'form-horizontal']) !!} @endif
{!! Form::text('name',null,['class' => 'form-control','minlength'=>'2','maxlength'=>'80','autocomplete'=>'off']) !!} @if($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!} {!! Form::close() !!}

List Of Design Type

@foreach($cdesign as $var) @endforeach
S.No. Name Action
{{ $i }} {{ $var->name }} Edit Delete
@stop @section('script') @stop