index.blade.php 2.03 KB
Newer Older
1
2
3
@extends('layouts.app')
@section('content')

4
<table class="table table-striped">
5
6
7
8
    <thead>
        <tr>
            <th scope="col">uid</th>
            <th scope="col">uploaded on</th>
9
            <th scope="col">group</th>
10
11
12
13
14
15
16
17
18
19
20
            <th scope="col">uses</th>
            <th scope="col">max uses</th>
            <th scope="col">use count increments</th>
            <th scope="col"><!-- actions column --></th>
        </tr>
    </thead>
    <tbody>
        @foreach ($inputs as $input)
        <tr>
            <td>{{ $input->id }}</td>
            <td>{{ $input->created_at }}</td>
21
            <td>{{ $input->group ?? "" }}</td>
22
            <td>{{ $input->uses }}</td>
23
            <td>{{ $input->max_uses ?? '∞'}}</td>
24
25
            <td>{{ $input->increments }}</td>
            <td>
Maik Messerschmidt's avatar
Maik Messerschmidt committed
26
                <a href="{{ route('inputs.show', $input) }}"
27
28
                  title="Show the input data payload">
                  <i class="fa fa-eye"></i>
Maik Messerschmidt's avatar
Maik Messerschmidt committed
29
30
31
32
               </a>
               <a href="{{ route('inputs.edit', $input) }}"
                 title="Edit this input">
                 <i class="fa fa-edit"></i>
33
34
              </a>

35
                <a href="_blank" class="confirm-delete" title="Remove this entry"
36
                   data-form-id="remove-form-{{$input->id}}"
37
                   data-message="Do you really want to delete this input?">
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
                    <i class="fa fa-remove"></i>
                </a>

                {{ Form::open([
                    'url' => route('inputs.destroy', $input),
                    'method' => 'delete',
                    'style' => 'display: none',
                    'id' => "remove-form-{$input->id}"
                ]) }}
                {{ Form::submit('send') }}
                {{ Form::close() }}
            </td>
        </tr>
        @endforeach
    </tbody>
</table>

55
56
57
58
<div class="d-flex justify-content-center">
    {{ $inputs->links() }}
</div>

59
60
<a href="{{ route('inputs.create') }}">Create a new entry</a> |
<a href="{{ route('inputs.import-form') }}">Import multiple entries from file
61
62

@endsection