@extends('layouts.app') @section('title', __('shop_rma.create')) @section('content')

@lang('shop_rma.create')

Quarantine shop stock and prepare a supplier return in one guided form.

@lang('shop_rma.cases')
@if($errors->any())
Please review the highlighted information.
@endif
@lang('shop_rma.no_customer_notice')
@lang('shop_rma.quarantine_notice')
@if(empty($rma_location))
@lang('shop_rma.no_rma_location')
@else {!! Form::open(['route' => 'shop-rmas.store', 'method' => 'post', 'files' => true, 'id' => 'shop_rma_create_form']) !!} @component('components.widget', ['class' => 'box-primary', 'title' => '1. Case Setup'])

Choose where the stock is currently located and which supplier will receive it.

{!! Form::label('location_id', __('shop_rma.shop_location') . ':*') !!} {!! Form::select('location_id', $locations, old('location_id'), ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('messages.please_select'), 'required']) !!} Product availability will be checked at this location.
{!! Form::label('supplier_id', __('shop_rma.supplier') . ':*') !!} {!! Form::select('supplier_id', $suppliers, old('supplier_id'), ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('messages.please_select'), 'required']) !!} Use a separate case for each supplier.
{!! Form::label('supplier_reference', __('shop_rma.supplier_reference') . ':') !!} {!! Form::text('supplier_reference', old('supplier_reference'), ['class' => 'form-control', 'placeholder' => 'Optional — can also be added when sent']) !!}
@lang('shop_rma.rma_location'): {{ $rma_location->name }} Items are held here until they are sent to the supplier.
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => '2. Add Shop Stock'])

Search and add only the affected items. Available quantity is shown before you add a product.

@lang('shop_rma.select_location_first')
No products added yet
Select a shop location, then search for the stock you want to return.
@endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => '3. Review and Save'])
{!! Form::label('internal_note', __('shop_rma.internal_note') . ':') !!} {!! Form::textarea('internal_note', old('internal_note'), ['class' => 'form-control', 'rows' => 3, 'placeholder' => 'Optional note for your team']) !!}
@lang('shop_rma.quarantine_notice')
@lang('messages.cancel')
@endcomponent {!! Form::close() !!} @endif
@endsection @section('javascript') @if(!empty($rma_location)) @endif @endsection