added crud data master region & cabang
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<label class="form-label">Nama Cost Centre</label>
|
||||
<input type="text" class="form-control" name="name" value="{{ $cost->name }}">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,10 +54,10 @@
|
||||
<td>{{ $cost->code }}</td>
|
||||
<td>{{ $cost->name }}</td>
|
||||
<td>
|
||||
@if (auth()->user()->can('admin.edit'))
|
||||
@if (auth()->user()->can('cost.edit'))
|
||||
<a class="btn btn-success btn-sm text-white" href="{{ route('admin.cost.edit', $cost->id) }}">Edit</a>
|
||||
@endif
|
||||
@if (auth()->user()->can('admin.delete'))
|
||||
@if (auth()->user()->can('cost.delete'))
|
||||
<a class="btn btn-danger text-white btn-sm" href="javascript:void(0);"
|
||||
onclick="event.preventDefault(); if(confirm('Are you sure you want to delete?')) { document.getElementById('delete-form-{{ $cost->id }}').submit(); }">
|
||||
{{ __('Delete') }}
|
||||
|
||||
Reference in New Issue
Block a user