Siopas Inventory PETI for ISTW Website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
3.4 KiB

@extends('layouts.main')
@section('content')
@include('layouts.components.alert-prompt')
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Tambah Peti</h5>
</div>
</div>
</div>
<div class="card-body">
<form action="{{ route('dashboard.peti.store') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="tipe_peti_id" class="col-form-label">Tipe Peti:</label>
<select class="form-control" name="tipe_peti_id" id="tipe_peti_id" required>
<option disabled selected>Pilih Tipe Peti</option>
@foreach ($typepeti as $data_type)
<option value="{{ $data_type->id }}">{{ $data_type->type }}</option>
@endforeach
</select>
<label for="warna" class="col-form-label">Warna Peti:</label>
<input class="form-control" name="warna" type="text" id="warna" value="{{ old('warna') }}"
placeholder="Masukan Warna Peti" required>
<label for="customer_id" class="col-form-label">Customer:</label>
<select class="form-control" name="customer_id" id="customer_id" required>
<option disabled selected>Pilih Customer</option>
@foreach ($customer as $data_customer)
<option value="{{ $data_customer->id }}">{{ $data_customer->name }}</option>
@endforeach
</select>
<label for="warehouse_id" class="col-form-label">Warehouse:</label>
<select class="form-control" name="warehouse_id" id="warehouse_id" required>
<option disabled selected>Pilih Warehouse</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}">{{ $data_warehouse->name }}</option>
@endforeach
</select>
<label for="status_disposal" class="col-form-label">Status Peti:</label>
<input class="form-control" name="status_disposal" type="text" id="status_disposal"
value="{{ old('status_disposal') }}" placeholder="Masukan status Peti">
<label for="jumlah" class="col-form-label">Jumlah Peti:</label>
<input class="form-control" name="jumlah" type="number" id="jumlah" value="{{ old('jumlah') }}"
placeholder="Masukan jumlah Peti" required>
<label for="date_pembuatan" class="col-form-label">Tanggal Pembuatan Peti:</label>
<input class="form-control" name="date_pembuatan" type="date" id="date_pembuatan"
value="{{ old('date_pembuatan') }}" required>
</div>
<div class="modal-footer d-flex justify-content-center">
<a href="{{ route('dashboard.peti.index') }}" class="btn btn-secondary">Kembali</a>
<button type="submit" class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
@endsection