Files
kalendar/resources/views/configuration/terms.blade.php
2018-10-30 15:24:18 +01:00

51 lines
2.1 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
@if (\Session::has('success'))
<div class="alert alert-success">
<p>{{ \Session::get('success') }}</p>
</div><br />
@endif
<div class="row justify-content-center">
<div class="col-md-2">
@include('configuration.nav')
</div>
<div class="col-md-10">
<div class="card">
<div class="card-header">Termíny <small class="float-right"><a href="{{ route('term-edit', 0) }}" class="btn btn-primary btn-sm">Nový záznam</a></small></div>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>D/M</th>
<th>Interval</th>
<th>Platí pro plátce</th>
<th>Název</th>
<th>Popis</th>
<th colspan="1">Akce</th>
</tr>
</thead>
<tbody>
@foreach($terms as $term)
<tr>
<td>{{ $term->id }}</td>
<td>{{ \App\Term::getDays($term->day) }}/{{ \App\Term::getMonths((string)$term->month) }}</td>
<td>{{ \App\Term::getInter($term->inter) }}</td>
<td>{{ \App\Term::getAppliesTo($term->applies_to) }}</td>
<td>{{ $term->name }}</td>
<td>{{ $term->desc }}</td>
<td><a href="{{route('term-edit', $term->id)}}" class="btn btn-warning">Edit</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection