Files
2026-08-29 15:53:53 +03:00

3 lines
2.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<x-layouts.app :title="__('customer.projects').' — TrafficPumper'"><div class="tp-customer-shell"><x-customer-sidebar/><main class="tp-customer-main"><header class="tp-page-header"><div><p>{{ __('customer.rank_tracking') }}</p><h1>{{ __('customer.projects') }}</h1><span>{{ __('projects.intro') }}</span></div><a class="btn btn-primary" href="{{ route('projects.create') }}"> {{ __('projects.new') }}</a></header>
<div class="tp-panel"><ul class="nav nav-pills mb-3"><li class="nav-item"><a class="nav-link {{!$archived?'active':''}}" href="{{route('projects.index')}}">{{__('states.active')}}</a></li><li class="nav-item"><a class="nav-link {{$archived?'active':''}}" href="{{route('projects.index',['filter'=>'archived'])}}">{{__('states.archived')}}</a></li></ul><div class="table-responsive"><table class="table tp-data-table"><thead><tr><th>{{__('projects.name')}}</th><th>{{__('projects.domain')}}</th><th>{{__('customer.tracked_keywords')}}</th><th>{{__('roles.fields.status')}}</th><th class="text-end">{{__('projects.actions')}}</th></tr></thead><tbody>@forelse($projects as $project)<tr><td><a class="fw-semibold" href="{{route('projects.show',$project)}}">{{$project->name}}</a></td><td>{{$project->domain}}</td><td>{{$project->keywords_count}}</td><td><span class="badge text-bg-{{$archived?'secondary':'success'}}">{{$project->status->label()}}</span></td><td class="text-end">@if($archived)<form class="d-inline" method="POST" action="{{route('projects.restore',$project)}}">@csrf<button class="btn btn-sm btn-outline-primary">{{__('projects.restore')}}</button></form>@else<a class="btn btn-sm btn-outline-secondary" href="{{route('projects.edit',$project)}}">{{__('projects.edit')}}</a> <form class="d-inline" method="POST" action="{{route('projects.archive',$project)}}" onsubmit="return confirm('{{__('projects.archive_confirm')}}')">@csrf<button class="btn btn-sm btn-outline-danger">{{__('projects.archive')}}</button></form>@endif</td></tr>@empty<tr><td colspan="5"><x-empty-state :title="__('projects.empty')" :description="__('projects.empty_hint')"/></td></tr>@endforelse</tbody></table></div></div><div>{{$projects->links()}}</div></main></div></x-layouts.app>