save course from disk begin

This commit is contained in:
Александр Бабкин
2022-07-12 16:48:24 +03:00
parent 1f59cda01d
commit d093a31512
7 changed files with 175 additions and 15 deletions

View File

@@ -9,11 +9,24 @@
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 bg-white border-b border-gray-200">
<a href="{{ route('auks.create') }}">
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
<i class="fa fa-add pr-2"></i>{{ __('Create AUK') }}
</button>
</a>
<div class="flex flex-row">
<div class="basis-1/2">
<a href="{{ route('auks.create') }}">
<button
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
<i class="fa fa-add pr-2"></i>{{ __('Create AUK') }}
</button>
</a>
</div>
<div class="basis-1/2 text-right">
<a href="{{ route('auks.scan') }}">
<button
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full">
<i class="fa fa-search pr-2"></i>{{ __('Scan AUK') }}
</button>
</a>
</div>
</div>
<div align="center" class="pt-4">
<table class="table table-sm border-b border-gray-200">
@@ -22,7 +35,7 @@
{{ __('Title') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('Number') }}
{{ __('Path') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('Actions') }}
@@ -30,8 +43,8 @@
</tr>
@forelse ($top_auks as $top_auk)
<tr class="border border-gray-200">
<td class="p-2 border border-gray-200">{{ $top_auk->name }}</td>
<td class="p-2 border border-gray-200">{{ $top_auk->number }}</td>
<td class="p-2 border border-gray-200">{{ $top_auk->auk_name }}</td>
<td class="p-2 border border-gray-200">{{ $top_auk->auk_path }}</td>
<td class="p-2 border border-gray-200">
<div class="text-center">
@include('auks.actions', ['auk' => $top_auk])