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

@lang('orders::global.orders.title')

{!! Form::model($order, ['method' => 'PUT', 'route' => ['admin.orders.update', $order->id]]) !!}
@lang('global.app_edit')
{!! Form::label('customer_id', trans('orders::global.orders.fields.customer').'*', ['class' => 'control-label']) !!} {!! Form::select('customer_id', $customers, old('customer_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('customer_id'))

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

@endif
{!! Form::label('status', trans('orders::global.orders.fields.status').'*', ['class' => 'control-label']) !!} {!! Form::select('status', $enum_status, old('status'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('status'))

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

@endif
@include('admin.common.add-products', array('products_return' => $order))
{!! Form::label('billing_cycle_id', trans('orders::global.orders.fields.billing-cycle').'*', ['class' => 'control-label']) !!} {!! Form::select('billing_cycle_id', $billing_cycles, old('billing_cycle_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('billing_cycle_id'))

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

@endif
@php $options = array( 'no' => 'No', 'yes' => 'Yes', ); @endphp
{!! Form::label('generate_invoice', trans('orders::global.orders.fields.generate-invoice'), ['class' => 'control-label']) !!} {!! Form::select('generate_invoice', $options, old('generate_invoice'), ['class' => 'form-control select2']) !!}

@if($errors->has('generate_invoice'))

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

@endif
{!! Form::label('send_email', trans('orders::global.orders.fields.send-email'), ['class' => 'control-label']) !!} {!! Form::select('send_email', $options, old('send_email'), ['class' => 'form-control select2']) !!}

@if($errors->has('send_email'))

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

@endif
{!! Form::label('send_sms', trans('orders::global.orders.fields.send-sms'), ['class' => 'control-label']) !!} {!! Form::select('send_sms', $options, old('send_sms'), ['class' => 'form-control select2']) !!}

@if($errors->has('send_sms'))

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

@endif
{!! Form::submit(trans('global.app_update'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop