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

Add Material used in embroidery

@if(isset($material)) {!! Form::model($material, ['method' => 'PATCH', 'action' => ['MaterialUsedController@update', $material->idMaterial], 'class' => 'form-horizontal']) !!} @else {!! Form::open(['url' => 'material-used', '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 Material used

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