2024-04-11 19:43:01 +05:00
|
|
|
@section('meta_title', __('admin-sections.Projects'))
|
|
|
|
@section('h1', __('admin-sections.Projects'))
|
|
|
|
<x-admin.layout>
|
|
|
|
@include('admin.projects._top')
|
|
|
|
<div class="card border-0 shadow mb-4">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-centered table-nowrap mb-0 rounded">
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr>
|
|
|
|
<th class="border-0">{{ __('validation.attributes.name') }}</th>
|
|
|
|
<th class="border-0">{{ __('validation.attributes.code') }}</th>
|
|
|
|
<th class="border-0">{{ __('validation.attributes.http_host') }}</th>
|
2024-04-14 15:27:51 +05:00
|
|
|
<th class="border-0">{{ __('validation.attributes.is_public') }}</th>
|
2024-04-11 19:43:01 +05:00
|
|
|
<th class="border-0 rounded-end" style="width: 150px"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($projects as $project)
|
|
|
|
<tr>
|
|
|
|
<td>
|
2024-04-14 15:27:51 +05:00
|
|
|
<a href="{{ route('admin.projects.show', $project) }}" class="fw-bold">
|
|
|
|
<svg data-slot="icon" width="16" height="16" fill="currentColor" class="align-text-top" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"></path>
|
2024-04-11 19:43:01 +05:00
|
|
|
</svg>
|
|
|
|
{{ $project->name }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $project->code }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $project->http_host }}
|
|
|
|
</td>
|
|
|
|
<td>
|
2024-04-14 15:27:51 +05:00
|
|
|
@if($project->is_public)
|
|
|
|
{{ __('Yes') }}
|
|
|
|
@else
|
|
|
|
{{ __('No') }}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('admin.projects.edit', $project) }}" class="btn btn-primary" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Edit') }}">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="align-text-top" viewBox="0 0 16 16">
|
|
|
|
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
|
|
|
|
</svg>
|
|
|
|
</a>
|
2024-04-11 19:43:01 +05:00
|
|
|
@can('delete', $project)
|
2024-04-14 15:27:51 +05:00
|
|
|
<form method="post" class="d-inline-block" action="{{ route('admin.projects.destroy', $project) }}">
|
2024-04-11 19:43:01 +05:00
|
|
|
@csrf
|
|
|
|
@method('DELETE')
|
2024-04-14 15:27:51 +05:00
|
|
|
<button type="submit" class="btn btn-danger click-confirm" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Delete') }}">
|
|
|
|
<svg data-slot="icon" fill="currentColor" width="20" height="20" class="align-text-center" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path>
|
|
|
|
</svg>
|
2024-04-11 19:43:01 +05:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
@endcan
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="card-footer border-0">
|
|
|
|
{{ $projects->links() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@push('scripts')
|
|
|
|
@include('admin._scripts._click-confirm', ['alert' => __('Do you want to delete?')])
|
|
|
|
@endpush
|
|
|
|
</x-admin.layout>
|