@extends('admin.layouts.master') @section('content')
{{-- Search Forms --}}
{{ Form::open(array('url' => 'admin/orders/rents/search', 'class' => 'form-inline')) }}
{{ Form::label('order_no', 'Search by Order No.', ['class' => 'sr-only']) }} {{ Form::text('order_no', (new Carbon\Carbon())->setTimezone(\Setting::get('app.view_timezone'))->format('ymd'), ['class' => 'form-control', 'placeholder' => 'Order No.', 'required' => 'required']) }}
{{ Form::close() }}
{{ Form::open(array('url' => 'admin/orders/rents/search', 'class' => 'form-inline')) }}
{{ Form::label('sku', 'Search by SKU', ['class' => 'sr-only']) }} {{ Form::text('sku', null, ['class' => 'form-control', 'placeholder' => 'SKU #', 'required' => 'required']) }}
{{ Form::close() }}
RETURN ITEMS - #{{ $rent_order->order_number }}

Info

@include('admin.orders.rents.customer-info', array('customer' => $customer))
@if (\Setting::get('show_deposit_items'))

Deposit Item

Deposit in custody: {{ ($rent_order->deposit_in_custody)?"Yes":"No" }}
Deposit item: {{ ($rent_order->deposit_item) }}
Deposit notes: {{ $rent_order->deposit_notes }}
@if ($rent_order->deposit_in_custody) @endif
@endif
{{ Form::open(array('url' => 'admin/orders/rents/return/'.$rent_order->id.'/invoice', 'method' => 'get')) }}

Items In rent

{{----}} @if ($rent_order->getOrderGeneralType() == 'bike') @endif @foreach($in_rent_line_items as $line_item) getDelayMinutes()) class="danger" @endif> {{----}} @if ($rent_order->getOrderGeneralType() == 'bike') @endif @endforeach
Name SKU Total priceReturn?Need Service?
@if ($line_item->parent_line_item_id) @else @endif {{ $line_item->product_id ? $line_item->product->category->name : $line_item->category->name }} {{ $line_item->product_id ? $line_item->product->getProductOptionDescription() : '' }} @if ($line_item->parent_line_item_id) @else @endif {{ $line_item->product_id ? $line_item->product->sku : '000' }} {{ Setting::get('currency_symbol') }}{{ number_format($line_item->getTotalPrice(), 2) }} @if (!$line_item->parent_line_item_id)
{{ Form::checkbox('returns[]', $line_item->id,null, array('id'=>$line_item->id,'class'=>'md-check')) }}
@endif
{{ Form::checkbox('service_'.$line_item->id , 1, false, array('id'=>'service_'.$line_item->id,'class' => 'md-check need_service_checkbox')) }}
@if(\Setting::get('scanning_is_enabled'))

Scan Product SKU

@endif
@if(Setting::get('has_borrow_item'))

Borrowed Items

@if($borrowed_items->count()) @foreach($borrowed_items as $line_item) @endforeach
Name Qty Return?
{{ $line_item->product_id ? $line_item->product->category->name : $line_item->category->name }} {{ $line_item->product_id ? $line_item->product->getProductOptionDescription() : '' }} {{ $line_item->qty }}
{{ Form::checkbox('return-borrows[]', $line_item->id,null, array('id'=>$line_item->id,'class'=>'md-check')) }}
@else

No borrowed item!

@endif @endif @if($borrowed_items->count() || $in_rent_line_items->count()) {{ Form::submit('Return', array('class' => 'btn btn-success btn-lg btn-outline')) }} Back to search
@endif {{ Form::close() }}
@stop @section('scripts') @parent @stop