begin mmc

This commit is contained in:
Александр Бабкин
2022-06-30 16:44:55 +03:00
parent abc503ecd9
commit 09bd73710f
9 changed files with 379 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
@php
use App\Models\Project;
$projects = Project::all()->sortBy('id');
@endphp
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
@@ -9,7 +13,33 @@
<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">
You're logged in!
Select Project:
<div align="center" class="pt-4">
<table class="table table-sm border-b border-gray-200">
<tr class="border border-gray-200">
<th class="p-2 border border-gray-200">
{{ __('Title') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('Comment') }}
</th>
<th class="p-2 border border-gray-200">
{{ __('MMC Path') }}
</th>
</tr>
@forelse ($projects as $project)
<tr class="border border-gray-200">
<td class="p-2 border border-gray-200"><a href="{{ route('mmc.index',$project->id) }}" class="underline">{{ $project->name }}</a></td>
<td class="p-2 border border-gray-200">{{ $project->description }}</td>
<td class="p-2 border border-gray-200">{{ $project->mmc_path }}</td>
</tr>
@empty
<tr>
<td colspan="3" class="p-2 border border-gray-200 text-center">No Projects!</td>
</tr>
@endforelse
</table>
</div>
</div>
</div>
</div>

View File

@@ -28,6 +28,23 @@
{{ __('Projects') }}
</x-nav-link>
</div>
@isset($project)
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
<x-nav-link :href="route('mmc.index')" :active="request()->routeIs('mmc.index')|request()->routeIs('mmc.create')|request()->routeIs('mmc.show')|request()->routeIs('mmc.edit')">
{{ __('MMC') }}
</x-nav-link>
</div>
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
<x-nav-link :href="route('documents.index')" :active="request()->routeIs('documents.index')|request()->routeIs('documents.create')|request()->routeIs('documents.show')|request()->routeIs('documents.edit')">
{{ __('Documents') }}
</x-nav-link>
</div>
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
<x-nav-link :href="route('auk.index')" :active="request()->routeIs('auk.index')|request()->routeIs('auk.create')|request()->routeIs('auk.show')|request()->routeIs('auk.edit')">
{{ __('AUK') }}
</x-nav-link>
</div>
@endisset
</div>
<!-- Settings Dropdown -->

View File

View File

@@ -0,0 +1,24 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
<div class="flex flex-row">
<div class="basis-1/2">
{{ __('Selected project') }}: {{ $project->name }}
</div>
<div class="basis-1/2">
{{ __('MMC path') }}: {{ $project->mmc_path }}
</div>
</div>
</h2>
</x-slot>
<div class="py-12">
<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">
</div>
</div>
</div>
</div>
</x-app-layout>