@extends('layouts.app') @section('title', __('repair::lang.add_jobsheet_parts')) @section('content') @include('repair::layouts.nav')
@component('components.widget', ['class' => 'box-solid', 'icon' => 'fa fa-plus text-primary', 'title' => __('repair::lang.add_jobsheet_parts') ])
@lang('repair::lang.job_sheet_no'): {{$job_sheet->job_sheet_no}} @lang('receipt.date'): {{@format_datetime($job_sheet->created_at)}}
@lang('role.customer'): {{$job_sheet->customer->name}} @lang('business.location'): {{$job_sheet->businessLocation?->name}}
@endcomponent {!! Form::open(['url' => action([\Modules\Repair\Http\Controllers\JobSheetController::class, 'saveParts'], $job_sheet->id), 'method' => 'post', 'id' => 'add_part_form' ]) !!} @component('components.widget', ['class' => 'box-solid', 'icon' => 'ni ni-fat-add text-primary', 'title' => __('repair::lang.add_parts')])
{!! Form::text('search_product', null, ['class' => 'form-control bd-rd-7', 'id' => 'search_job_sheet_parts', 'placeholder' => __('repair::lang.search_parts')]); !!}
@if(!empty($parts)) @foreach($parts as $part) @include('repair::job_sheet.partials.job_sheet_part_row', ['variation_name' => $part['variation_name'], 'unit' => $part['unit'], 'quantity' => $part['quantity'], 'variation_id' => $part['variation_id']]) @endforeach @endif
@lang('repair::lang.part') @lang('sale.qty')
@endcomponent @if(!empty($status_update_data) && $status_update_data['job_sheet_id'] == $job_sheet->id) @component('components.widget', ['class' => 'box-solid', 'icon' => 'ni ni-fat-add text-primary', 'title' => __('repair::lang.add_parts')])
@include('repair::job_sheet.partials.edit_status_form', ['status_update_data' => $status_update_data]) @endcomponent @endif
{!! Form::close() !!}
@stop @section('javascript') @endsection