Update source into github
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
@extends("admin.main")
|
||||
@section("content")
|
||||
@if(auth()->guard('admins')->user()->can("add product"))
|
||||
<div class="card card-outline card-primary">
|
||||
<form action="{{ route('product.create') }}" method="get">
|
||||
@csrf
|
||||
<input type="hidden" name="step" value="2">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{--First name--}}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-4" for="name">Product Name</label>
|
||||
<div class="col-md-8">
|
||||
<input type="text" id="name" name="name" placeholder="Product Group Name"
|
||||
value="{{ old('name') }}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
{{--Product Type--}}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-4" for="lastname">Product Type</label>
|
||||
<div class="col-md-8">
|
||||
<select class="custom-select" name="type">
|
||||
@if($type->count())
|
||||
@foreach($type->all() as $item)
|
||||
<option
|
||||
value="{{ $item->id }}" @selected(old('group') === $item->id) >{{ $item->name }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{--Product Group--}}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-4" for="lastname">Product Group</label>
|
||||
<div class="col-md-8">
|
||||
<select class="custom-select" name="group">
|
||||
<option value="0">-----------</option>
|
||||
@if($group->count())
|
||||
@foreach($group->all() as $item)
|
||||
<option
|
||||
value="{{ $item->id }}" @selected(old('group') === $item->id) >{{ $item->name }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="{{ route('product.index') }}" class="btn btn-outline-secondary">Trở về</a>
|
||||
<button type="submit" class="btn btn-outline-primary">Lưu dữ liệu</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Product
|
||||
management department</h5>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
Reference in New Issue
Block a user