64 lines
3.2 KiB
PHP
64 lines
3.2 KiB
PHP
<x-app-layout>
|
|
<x-slot name="header">
|
|
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
|
{{ __('Project list') }}
|
|
</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">
|
|
|
|
<a href="{{ route('projects.create')}}">
|
|
<x-button class="m-2">{{__('Create project')}}</x-button>
|
|
</a>
|
|
|
|
<div align="center">
|
|
<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>
|
|
<th class="p-2 border border-gray-200">
|
|
{{ __('Actions')}}
|
|
</th>
|
|
</tr>
|
|
@forelse ( $projects as $project)
|
|
<tr class="border border-gray-200">
|
|
<td class="p-2 border border-gray-200">{{ $project->name }}</td>
|
|
<td class="p-2 border border-gray-200">{{ $project->description }}</td>
|
|
<td class="p-2 border border-gray-200">{{ $project->mmc_path }}</td>
|
|
<td class="p-2 border border-gray-200">
|
|
<div class="text-center">
|
|
<!-- Regular -->
|
|
<a href="{{ route('projects.show',$project->id) }}">
|
|
<i class="fa fa-eye text-green-500 px-2 text-lg"></i>
|
|
</a>
|
|
<a href="{{ route('projects.edit',$project->id) }}">
|
|
<i class="fa fa-edit text-blue-500 px-2 text-lg"></i>
|
|
</a>
|
|
<a href="{{ route('projects.destroy',$project->id) }}">
|
|
<i class="fa fa-trash text-red-500 px-2 text-lg"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="3">No Projects!</td>
|
|
</tr>
|
|
@endforelse
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout> |