2020-05-07 00:36:33 +01:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
@section('title', config('app.name') . ' | ' . __('Available forms'))
|
2020-05-07 00:36:33 +01:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
<h4>{{__('Administration')}} / {{__('Forms')}}</h4>
|
2020-05-07 00:36:33 +01:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('js')
|
|
|
|
|
2020-05-13 22:47:51 +01:00
|
|
|
<x-global-errors></x-global-errors>
|
2020-05-07 00:36:33 +01:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="card bg-gray-dark">
|
|
|
|
|
|
|
|
<div class="card-header bg-indigo">
|
2022-03-19 05:56:20 +00:00
|
|
|
<div class="card-title"><h4 class="text-bold">{{__('Available forms')}}</h4></div>
|
2020-05-07 00:36:33 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
@if(!$forms->isEmpty())
|
|
|
|
|
|
|
|
<table class="table table-active table-borderless" style="white-space: nowrap">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
2022-03-19 05:56:20 +00:00
|
|
|
<th>{{__('Title')}}</th>
|
|
|
|
<th>{{__('Created at')}}</th>
|
|
|
|
<th>{{__('Updated at')}}</th>
|
|
|
|
<th>{{__('Actions')}}</th>
|
2020-05-07 00:36:33 +01:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
@foreach($forms as $form)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{$form->id}}</td>
|
|
|
|
<td>{{$form->formName}}</td>
|
|
|
|
<td>{{$form->created_at}}</td>
|
2020-07-15 06:48:49 +01:00
|
|
|
<td>{{ $form->updated_at }}</td>
|
2020-05-07 00:36:33 +01:00
|
|
|
<td>
|
2020-07-16 21:21:28 +01:00
|
|
|
<form style="display: inline-block; white-space: nowrap" action="{{route('destroyForm', ['form' => $form->id])}}" method="POST">
|
2020-05-07 00:36:33 +01:00
|
|
|
|
|
|
|
@method('DELETE')
|
|
|
|
@csrf
|
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
<button type="submit" class="btn btn-sm btn-danger mr-2"><i class="fa fa-trash"></i> {{__('Delete')}}</button>
|
2020-05-07 00:36:33 +01:00
|
|
|
</form>
|
2022-03-19 05:56:20 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{ route('previewForm', ['form' => $form->id]) }}'"><i class="fa fa-eye"></i> {{__('Preview form')}}</button>
|
2020-05-07 00:36:33 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
{{__('Nothing to see here! Please add some forms first.')}}
|
2020-05-07 00:36:33 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
2022-03-19 05:56:20 +00:00
|
|
|
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showFormBuilder')}}'">{{__('NEW FORM')}}</button>
|
2020-05-07 00:36:33 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
2020-07-16 06:46:20 +01:00
|
|
|
|
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|