@extends('layouts.main') @section('content')

{{$title}}

Create Stock
@foreach($stock as $detail) @endforeach
# Name Car type Part number Parent Part Category Availability Level Shelf Action
{{$detail->id}} @if ($detail->level=="parent") {{ $detail->name }} @else {{ $detail->name }} @endif {{$detail->car_type." ".$detail->car_model." - ".$detail->year_of_manufucturing}} {{$detail->part_number}} {{optional($detail->stock)->name." - ".optional($detail->stock)->part_number}} {{$detail->category->name}} @if($detail->category->name == "Good") @if($detail->stcokBalance($detail->id) > 0) Available @else Not Available @endif @endif {{$detail->level }} {{ $detail->shelf }} Edit
@endsection