@extends('layout.app') @section('content')

{{$title}}

GIÁ TRỊ ĐƠN:    {{number_format($order->order_price)}} đ
@if (isset($doc)) {!! Form::model($doc, array('url' => url('commission/'.$doc->id), 'method' => 'put', 'files'=> true,'id'=>'fvalidate')) !!} @else {!! Form::open(array('url' => url()->full(), 'method' => 'post', 'files'=> true,'id'=>'fvalidate')) !!} @endif
@if(isset($commissions) && $commissions) @foreach($commissions as $item)
{!! Form::label('user_id', 'Nhân viên hưởng', array('class' => ' required')) !!} {!! Form::select('user_id[]', $users, $item->user_id, array('class' => 'form-control select2 user', 'placeholder' => 'Chọn nhân viên')) !!}
{{--
--}} {{--
--}} {{-- {!! Form::label('percent', 'Hoa hồng hưởng (%)', array('class' => ' required')) !!}--}} {{-- {!! Form::number('percent[]', isset($item->percent) ? $item->percent: "", array('class' => 'form-control percent-order')) !!}--}} {{--
--}} {{--
--}}
{!! Form::label('earn', 'Doanh số được chia (VNĐ)', array('class' => ' required')) !!} {!! Form::text('earn[]', number_format($item->earn), array('class' => 'form-control earn-order')) !!}
{!! Form::label('note', 'Ghi chú') !!} {!! Form::text('note[]', $item->note, array('class' => 'form-control')) !!}
@endforeach @endif
{{ Form::close() }}
@endsection @section('_script') @endsection