@extends('layouts.backend.index') @section('title', $label) @section('content')
@csrf
Tambah dimensi untuk menentukan harga per dimensi/varian barang. Maksimal 2 Dimensi. Abaikan jika tidak ada.
@php $dimension_input = ['dimension_name', 'dimension_list', 'sku', 'stock', 'price']; $alert = false; @endphp @foreach ($dimension_input as $di) @if (@$errors->has($di)) @if ($alert === false)
@endif @foreach ($errors->get($di) as $message)
 {{ ucfirst($message) }}
@endforeach @if ($alert === false)
@endif @endif @endforeach
@php $old = old('dimensions'); @endphp @if (!empty($old)) @foreach ($old['name'] as $index => $name) @php $options = []; if (!empty(@$old['list'][$index])) { foreach ($old['list'][$index] as $l) $options[$l] = $l; } @endphp
Dimensi {{ $index }}
@endforeach @endif
@php $old_list = old('dimension_list'); @endphp
..... SKU Harga Stok
Tambah spesifikasi untuk menentukan detail per item. Abaikan jika tidak ada.
@if (@$errors->has('specification_name') or @$errors->has('specification_value'))
@foreach ($errors->get('specification_name') as $message)
 {{ ucfirst($message) }}
@endforeach @foreach ($errors->get('specification_value') as $message)
 {{ ucfirst($message) }}
@endforeach
@endif
Nama Value #
ADD SPESIFIKASI
@endsection @push('scripts') @endpush