@extends('index') @section('content') Add Product Cost Back @csrf General / Employee / Vendor General Cost @if($employee->count()) @foreach($employee as $item) {{$item->employee_no}} - {{$item->name}} {{$item->fname}} @endforeach @endif @if($vendor->count()) @foreach($vendor as $item) {{$item->vendor_no}} - {{$item->fname}} @endforeach @endif Products Costing Heads Select Head @if($head->count()) @foreach($head as $item) head_id ? 'selected' : '' }}>{{$item->name}} @endforeach @endif Wages Add Add Sr. General / Employee / Vendor Costing Head Wages Action @if($productCost->count()) @foreach($productCost as $item) {{$item->employee_no ?? $item->vendor_no}}{{$item->name ? ' - '.$item->name : 'General Cost'}} @if($item->employee_no) @elseif($item->vendor_no) @else @endif {{$item->hname}} {{$item->amount}} X @endforeach @endif Submit @endsection