@extends('layouts.app')
@section('title', __('repair::lang.edit_repair'))
@section('content')
@if(session('business.enable_rp') == 1)
@endif
{!! Form::open(['url' => action([\App\Http\Controllers\SellPosController::class, 'update'], ['id' => $transaction->id ]), 'method' => 'put', 'id' => 'edit_sell_form', 'files' => true ]) !!}
{!! Form::hidden('location_id', $transaction->location_id, ['id' => 'location_id', 'data-receipt_printer_type' => !empty($location_printer_type) ? $location_printer_type : 'browser']); !!}
{!! Form::hidden('has_module_data', true); !!}
{!! Form::hidden('status', 'final'); !!}
{!! Form::hidden('sub_type', 'repair'); !!}
@component('components.widget')
{!! Form::label('transaction_date', __('repair::lang.repair_added_on') . ':*') !!}
{!! Form::text('transaction_date', $transaction->transaction_date, ['class' => 'form-control bd-rd-7', 'readonly', 'required']); !!}
{!! Form::label('repair_completed_on', __('repair::lang.repair_completed_on') . ':*') !!}
{!! Form::text('repair_completed_on', $transaction->repair_completed_on, ['class' => 'form-control bd-rd-7', 'readonly', 'required']); !!}
{!! Form::label('repair_brand_id', __('repair::lang.manufacturer') . ':') !!}
{!! Form::select('repair_brand_id', $brands, $transaction->repair_brand_id, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
{!! Form::label('repair_model', __('repair::lang.model') . ':') !!}
{!! Form::text('repair_model', $transaction->repair_model, ['class' => 'form-control bd-rd-7', 'placeholder' => '']); !!}
{!! Form::label('repair_serial_no', __('repair::lang.serial_no') . ':') !!}
{!! Form::text('repair_serial_no', $transaction->repair_serial_no, ['class' => 'form-control bd-rd-7', 'placeholder' => '']); !!}
@if(in_array('service_staff' ,$enabled_modules))
{!! Form::label('res_waiter_id', __('repair::lang.assign_repair_to') . ':') !!}
{!! Form::select('res_waiter_id', $waiters, $transaction->res_waiter_id, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
@endif
@show_tooltip(__('repair::lang.auto_send_email_tooltip'))
@show_tooltip(__('repair::lang.auto_send_sms_tooltip'))
{!! Form::label('documents', __('lang_v1.upload_documents') . ':' ) !!}
{!! Form::file('documents[]', ['multiple', 'id' => 'documents']); !!}
@php
$selected_checklist = !empty($transaction->repair_checklist) ? json_decode($transaction->repair_checklist, true) : [];
@endphp
@include('repair::repair.partials.security_modal')
@include('repair::repair.partials.checklist_modal')
@endcomponent
@component('components.widget')
{!! Form::label('repair_defects',__('repair::lang.defect') . ':') !!}
{!! Form::textarea('repair_defects', $transaction->repair_defects, ['class' => 'form-control bd-rd-7', 'rows' => 3]); !!}
{!! Form::label('staff_note',__('repair::lang.noted_problems_n_technician_comments'). ':') !!}
{!! Form::textarea('staff_note', $transaction->staff_note, ['class' => 'form-control bd-rd-7', 'rows' => 3]); !!}
@endcomponent
@component('components.widget')
@php
$hide_tax = '';
if( session()->get('business.enable_inline_tax') == 0){
$hide_tax = 'hide';
}
@endphp
@lang('sale.product')
|
@lang('sale.qty')
|
@if(!empty($pos_settings['inline_service_staff']) && in_array('service_staff' ,$enabled_modules))
@lang('restaurant.service_staff')
|
@endif
@lang('sale.price_inc_tax')
|
@lang('sale.subtotal')
|
|
@foreach($sell_details as $sell_line)
@include('sale_pos.product_row', ['product' => $sell_line, 'row_count' => $loop->index, 'tax_dropdown' => $taxes, 'sub_units' => !empty($sell_line->unit_details) ? $sell_line->unit_details : [] ])
@endforeach
@endcomponent
@component('components.widget')
{!! Form::label('discount_type', __('sale.discount_type') . ':*' ) !!}
{!! Form::select('discount_type', ['fixed' => __('lang_v1.fixed'), 'percentage' => __('lang_v1.percentage')], $transaction->discount_type , ['class' => 'form-control select2','placeholder' => __('messages.please_select'), 'required', 'data-default' => 'percentage']); !!}
{!! Form::label('discount_amount', __('sale.discount_amount') . ':*' ) !!}
{!! Form::text('discount_amount', @num_format($transaction->discount_amount), ['class' => 'form-control input_number bd-rd-7', 'data-default' => $business_details->default_sales_discount]); !!}
@lang( 'sale.discount_amount' ):(-)
0
{{session('business.rp_name')}}
{!! Form::label('rp_redeemed_modal', __('lang_v1.redeemed') . ':' ) !!}
{!! Form::number('rp_redeemed_modal', $transaction->rp_redeemed, ['class' => 'form-control direct_sell_rp_input bd-rd-7', 'data-amount_per_unit_point' => session('business.redeem_amount_per_unit_rp'), 'min' => 0, 'data-max_points' => !empty($redeem_details['points']) ? $redeem_details['points'] : 0, 'data-min_order_total' => session('business.min_order_total_for_redeem') ]); !!}
@lang('lang_v1.available'): {{$redeem_details['points'] ?? 0}}
@lang('lang_v1.redeemed_amount'): (-){{@num_format($transaction->rp_redeemed_amount)}}
{!! Form::label('tax_rate_id', __('sale.order_tax') . ':*' ) !!}
{!! Form::select('tax_rate_id', $taxes['tax_rates'], $transaction->tax_id, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2', 'data-default'=> $business_details->default_sales_tax], $taxes['attributes']); !!}
@lang( 'sale.order_tax' ):(+)
{{$transaction->tax_amount}}
{!! Form::label('shipping_details', __('sale.shipping_details')) !!}
{!! Form::textarea('shipping_details',$transaction->shipping_details, ['class' => 'form-control bd-rd-7','placeholder' => '' ,'rows' => '1', 'cols'=>'30']); !!}
{!!Form::label('shipping_charges', __('sale.shipping_charges'))!!}
{!!Form::text('shipping_charges',@num_format($transaction->shipping_charges),['class'=>'form-control input_number bd-rd-7','placeholder'=> '']);!!}
@lang('sale.total_payable'):
0
{!! Form::label('update_note',__('repair::lang.update_note') . ':') !!}
{!! Form::textarea('update_note', null, ['class' => 'form-control bd-rd-7', 'rows' => 3]); !!}
@endcomponent
@if(in_array('subscription', $enabled_modules))
@include('sale_pos.partials.recurring_invoice_modal')
@endif
{!! Form::close() !!}
@include('contact.create', ['quick_add' => true])
@stop
@section('javascript')
@include('repair::layouts.partials.javascripts')
@endsection