mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
@extends('layout.default')
|
|
|
|
@section('title', 'Locations')
|
|
@section('activeNav', 'locations')
|
|
@section('viewJsName', 'locations')
|
|
|
|
@section('content')
|
|
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2">
|
|
|
|
<h1 class="page-header">
|
|
Locations
|
|
<a class="btn btn-default" href="/location/new" role="button">
|
|
<i class="fa fa-plus"></i> Add
|
|
</a>
|
|
</h1>
|
|
|
|
<div class="table-responsive">
|
|
<table id="locations-table" class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($locations as $location)
|
|
<tr>
|
|
<td class="fit-content">
|
|
<a class="btn btn-info" href="/location/{{ $location->id }}" role="button">
|
|
<i class="fa fa-pencil"></i>
|
|
</a>
|
|
<a class="btn btn-danger location-delete-button" href="#" role="button" data-location-id="{{ $location->id }}" data-location-name="{{ $location->name }}">
|
|
<i class="fa fa-trash"></i>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{{ $location->name }}
|
|
</td>
|
|
<td>
|
|
{{ $location->description }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
@stop
|