{!! Form::label('id', trans('lang.order_id'), ['class' => 'col-4 control-label']) !!}

#{!! $order->id !!}

{!! Form::label('order_client', trans('lang.order_client'), ['class' => 'col-4 control-label']) !!}

{!! $order->user->name !!}

{!! Form::label('order_client_phone', trans('lang.order_client_phone'), ['class' => 'col-4 control-label']) !!}

{!! isset($order->user->custom_fields['phone']) ? $order->user->custom_fields['phone']['view'] : "" !!}

{!! Form::label('delivery_address', trans('lang.delivery_address'), ['class' => 'col-4 control-label']) !!}

{!! $order->deliveryAddress ? $order->deliveryAddress->address : '' !!}

{!! Form::label('order_date', trans('lang.order_date'), ['class' => 'col-4 control-label']) !!}

{!! $order->created_at !!}

{!! Form::label('order_status_id', trans('lang.order_status_status'), ['class' => 'col-4 control-label']) !!}

{!! $order->orderStatus->status !!}

{!! Form::label('active', trans('lang.order_active'), ['class' => 'col-4 control-label']) !!}
@if($order->active)

{{trans('lang.yes')}}

@else

{{trans('lang.order_canceled')}}

@endif
{!! Form::label('payment_method', trans('lang.payment_method'), ['class' => 'col-4 control-label']) !!}

{!! isset($order->payment) ? $order->payment->method : '' !!}

{!! Form::label('payment_status', trans('lang.payment_status'), ['class' => 'col-4 control-label']) !!}

{!! isset($order->status) ? $order->payment->status : trans('lang.order_not_paid') !!}

{!! Form::label('order_updated_date', trans('lang.order_updated_at'), ['class' => 'col-4 control-label']) !!}

{!! $order->updated_at !!}

{!! Form::label('market', trans('lang.market'), ['class' => 'col-4 control-label']) !!}
@if(isset($order->productOrders[0]))

{!! $order->productOrders[0]->product->market->name !!}

@endif
{!! Form::label('market_address', trans('lang.market_address'), ['class' => 'col-4 control-label']) !!}
@if(isset($order->productOrders[0]))

{!! $order->productOrders[0]->product->market->address !!}

@endif
{!! Form::label('market_phone', trans('lang.market_phone'), ['class' => 'col-4 control-label']) !!}
@if(isset($order->productOrders[0]))

{!! $order->productOrders[0]->product->market->phone !!}

@endif
{!! Form::label('driver', trans('lang.driver'), ['class' => 'col-4 control-label']) !!}
@if(isset($order->driver))

{!! $order->driver->name !!}

@else

{{trans('lang.order_driver_not_assigned')}}

@endif
{!! Form::label('hint', 'Hint:', ['class' => 'col-4 control-label']) !!}

{!! $order->hint !!}

{{----}} {{--
--}} {{-- {!! Form::label('tax', 'Tax:', ['class' => 'col-4 control-label']) !!}--}} {{--
--}} {{--

{!! $order->tax !!}

--}} {{--
--}} {{--
--}}