@extends('layouts.admin')
@section('title', 'Produk')
@section('content')
@php
$breadcrumbs = [
['label' => 'Dashboard', 'url' => route('admin.dashboard')],
['label' => 'Master', 'url' => '#'],
['label' => 'Produk Jasa', 'url' => route('admin.master.products.index')]
];
@endphp
| No | Gambar | Nama Jasa | Kategori | Harga | Materials | Spareparts | Status | Aksi | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + $products->firstItem() - 1 }} |
@if ($product->product_image)
|
{{ $product->product_title }}
@php
$mismatchedCount = ($product->productions ?? collect())->filter(function($production) use ($product) {
return $production->labor_cost &&
$production->labor_cost != ($product->service_fee ?? 0);
})->count();
@endphp
@if($mismatchedCount > 0)
{{ $mismatchedCount }}
@endif
|
{{ $product->category_name }} | Rp {{ number_format($product->product_prices, 0, ',', '.') }} | @if ($product->materials && $product->materials->count() > 0) {{ $product->materials->count() }} bahan @else - @endif | @if ($product->spareparts && $product->spareparts->count() > 0) {{ $product->spareparts->count() }} sparepart @else - @endif | @if ($product->is_active) Aktif @else Nonaktif @endif | ||
|
|
|||||||||