@extends('layouts.master') @section('content') @if (session('success')) @endif

Barang

@if(auth()->user()->role->slug !== 'sales')
Tambah Barang
@if (isset($barang) && $barang->gambar)
Gambar Produk
@endif
@csrf @if (isset($barang)) @endif
Format yang diperbolehkan: JPG, JPEG, PNG (Maksimal 2MB)
@if (isset($barang)) Kembali @endif
@endif @if (!isset($barang))
Daftar Barang
Reset
@if(auth()->user()->role->slug !== 'sales') {{-- Ubah Harga --}} @endif
@if (isset($barangs) && $barangs->count() > 0) @foreach ($barangs as $barang) @endforeach @else @endif
Kode Nama Supplier Quantity Grosir Satuan Lokasi HPP Aksi
discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> {{ $barang->kode }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> {{ $barang->nama }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> {{ $barang->supplier->nama_perusahaan ?? '-' }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> {{ $barang->quantity_grosir }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> {{ $barang->satuan }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> {{ $barang->lokasi ?? '-' }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> Rp {{ number_format($barang->hpp, 0, ',', '.') }} discontinue == 1) style="background-color: #ff6b6b; color: #fff;" @endif> @if(auth()->user()->role->slug !== 'sales') @else @endif
Barang tidak ditemukan
@if (isset($barangs)) {{ $barangs->links() }} @endif
@endif @endsection @section('scripts') @endsection