-
@foreach($errors->all() as $error)
- {{ $error }} @endforeach
| @lang('messages.date') | @lang('sale.invoice_no') | @lang('contact.customer') | @lang('purchase.business_location') | @lang('sale.total') | @lang('messages.action') |
|---|
@lang('rma.case_setup_guidance')
{!! Form::hidden('sale_id', $sale->id) !!}{{ $sale->invoice_no }}
{{ optional($sale->contact)->supplier_business_name ?: optional($sale->contact)->name }}
{{ optional($sale->location)->name }}
@lang('rma.select_items_guidance')
| @lang('product.product_name') | @lang('rma.available_qty') | @lang('rma.quantity') | @lang('rma.issue_type') | @lang('rma.reason') | @lang('rma.issue_note') | @lang('rma.condition_note') | @lang('rma.warranty') | @lang('rma.picture') | |
|---|---|---|---|---|---|---|---|---|---|
| @if($sell_line->available_rma_quantity > 0) {!! Form::checkbox("items[$sell_line->id][selected]", 1, old("items.$sell_line->id.selected"), ['class' => 'rma-item-selected']) !!} @endif |
{{ optional($sell_line->product)->name }}
@if(!empty($variation_parts))
{{ implode(' - ', $variation_parts) }} @endif |
{{ @format_quantity($sell_line->available_rma_quantity) }} {{ $unit_name }} | {!! Form::number("items[$sell_line->id][quantity]", old("items.$sell_line->id.quantity"), ['class' => 'form-control rma-quantity', 'step' => '0.01', 'min' => '0', 'max' => $sell_line->available_rma_quantity, 'data-max' => $sell_line->available_rma_quantity, 'data-error-message' => __('rma.quantity_exceeds_available', ['qty' => @format_quantity($sell_line->available_rma_quantity)])]) !!} @error("items.$sell_line->id.quantity") {{ $message }} @enderror | {!! Form::select("items[$sell_line->id][issue_type]", \App\RmaItem::issueTypes(), null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('messages.please_select')]) !!} | {!! Form::select("items[$sell_line->id][reason]", \App\RmaItem::intakeReasons(), null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('messages.please_select')]) !!} | {!! Form::textarea("items[$sell_line->id][issue_note]", null, ['class' => 'form-control', 'rows' => 2]) !!} | {!! Form::textarea("items[$sell_line->id][condition_note]", null, ['class' => 'form-control', 'rows' => 2]) !!} |
{{ $sell_line->warranty_details['status'] }}
@if(!empty($sell_line->warranty_details['expires_at']))
{{ @format_datetime($sell_line->warranty_details['expires_at']) }} @endif |
@lang('rma.review_create_guidance')