@extends('layouts.app') @section("breadcrumb")
  • @lang('menu.manageParts')
  • id."/edit")}}">{{$part->description}}
  • @lang('fleet.manageStock')
  • @endsection @section('content')

    @lang('fleet.addNew') : {{$part->description}}

    {!! Form::open(['route' => 'stock.store','method'=>'post','class'=>'form-inline']) !!} {!! Form::hidden("user_id",Auth::user()->id) !!} {!! Form::hidden("part_id",$part->id) !!}
    {!! Form::label('price_eur', __('fleet.cost'), ['class' => 'form-label']) !!}
    {{Hyvikk::get('currency')}}
    {!! Form::number('price_eur', null,['class' => 'form-control','required']) !!}
    {!! Form::label('transport', __('fleet.transport'), ['class' => 'form-label']) !!}
    {{Hyvikk::get('currency')}}
    {!! Form::number('transport', null,['class' => 'form-control','required']) !!}
    {!! Form::label('customs', __('fleet.customDuties'), ['class' => 'form-label']) !!}
    {{Hyvikk::get('currency')}}
    {!! Form::number('customs', null,['class' => 'form-control','required']) !!}
    {!! Form::label('volume', __('fleet.quantity'), ['class' => 'form-label']) !!} {!! Form::number('volume', null,['class' => 'form-control','required']) !!}
    {!! Form::submit(__('fleet.addStock'), ['class' => 'btn btn-success']) !!}
    {!! Form::close() !!}

    @lang('fleet.manageStock') : {{$part->description}}

    @foreach($data as $row) @endforeach
    @lang('fleet.name') @lang('fleet.cost') @lang('fleet.price') @lang('fleet.quantity') @lang('fleet.created') @lang('fleet.action')
    {{$row->get_part->description}} {{$row->price_eur}} {{$row->price_local}} {{$row->volume}} {{$row->created_at}} {!! Form::open(['url' => 'stock/'.$row->id,'method'=>'DELETE','class'=>'form-horizontal','id'=>'form_'.$row->id]) !!} {!! Form::hidden("id",$row->id) !!} {!! Form::close() !!}
    @endsection @section('script') @endsection