@extends('layouts.app') @section("breadcrumb")
  • @lang('menu.manageParts')
  • @lang('fleet.editParts')
  • @endsection @section('content')

    @lang('fleet.editParts')

    @if (count($errors) > 0)
      @foreach ($errors->all() as $error)
    • {{ $error }}
    • @endforeach
    @endif {!! Form::open(['route' => ['parts.update',$data->id],'method'=>'PATCH','files'=>true]) !!} {!! Form::hidden("user_id",Auth::user()->id) !!} {!! Form::hidden("id",$data->id)!!}
    {!! Form::label('image', __('fleet.picture'), ['class' => 'form-label']) !!} @if($data->image != null) (View) @endif {!! Form::file('image',null,['class' => 'form-control']) !!}
    {!! Form::label('barcode', __('fleet.barcode'), ['class' => 'form-label']) !!} {!! Form::text('barcode', $data->barcode,['class' => 'form-control','required']) !!}
    {!! Form::label('number', __('fleet.number'), ['class' => 'form-label']) !!} {!! Form::text('number', $data->number,['class' => 'form-control','required']) !!}
    {!! Form::label('description',__('fleet.description'), ['class' => 'form-label']) !!} {!! Form::text('description',$data->description,['class'=>'form-control','required']) !!}
    {!! Form::label('unit_cost', __('fleet.unit_cost'), ['class' => 'form-label']) !!}
    {{Hyvikk::get('currency')}}
    {!! Form::number('unit_cost', $data->unit_cost,['class' => 'form-control','required']) !!}
    {!! Form::label('vendor_id',__('fleet.vendor'), ['class' => 'form-label']) !!}
    {!! Form::label('manufacturer', __('fleet.manufacturer'), ['class' => 'form-label']) !!} {!! Form::text('manufacturer', $data->manufacturer,['class' => 'form-control']) !!}
    {!! Form::label('stock', __('fleet.qty_on_hand'), ['class' => 'form-label']) !!} {!! Form::number('stock', $data->stock,['class' => 'form-control','required']) !!}
    {!! Form::label('note',__('fleet.note'), ['class' => 'form-label']) !!} {!! Form::textarea('note',$data->note,['class'=>'form-control','size'=>'30x2']) !!}
    {!! Form::submit(__('fleet.update'), ['class' => 'btn btn-warning']) !!}
    {!! Form::close() !!}
    @endsection