Viewing File: /home/ubuntu/btcthrottle-backend/resources/views/admin/static_pages/index.blade.php
@extends('layouts.admin')
@section('title', tr('static_pages'))
@section('content-header', tr('static_pages'))
@section('breadcrumbs')
<li class="breadcrumb-item">
<a href="{{route('admin.static_pages.index')}}">{{ tr('static_pages') }}</a>
</li>
<li class="breadcrumb-item active">
{{ tr('view_static_pages') }}
</li>
@endsection
@section('content')
<div class="card">
@include('admin.static_pages._search')
<div class="table-responsive">
<table class="table table-hover">
<thead class="border-top">
<tr>
<th>{{tr('s_no')}}</th>
<th>{{tr('title')}}</th>
<th>{{tr('type')}}</th>
<th>{{tr('footer_section')}}</th>
<th>{{tr('status')}}</th>
<th>{{tr('action')}}</th>
</tr>
</thead>
<tbody class="table-border-bottom-0">
@forelse($static_pages as $key => $static_page)
@include('admin.static_pages.modals')
<tr>
<td><span class="fw-medium">{{ $static_pages->firstItem() + $key}}</span></td>
<td>
<a href="{{ route('admin.static_pages.show', $static_page) }}">
{{ $static_page->title ? Str::limit($static_page->title, 30) : tr('na') }}
</a>
</td>
<td>
<a href="{{ route('admin.static_pages.show', $static_page) }}" class="text-danger">
{{ $static_page->type ?: tr('na') }}
</a>
</td>
<td>
<a href="{{ route('admin.static_pages.show', $static_page) }}" class="text-danger">
{{ footer_section_formatted($static_page->footer_section ?: 0 ) }}
</a>
</td>
<td>
<span class="badge bg-label-{{$static_page->status ? 'success' : 'danger'}} me-1" id="statusText{{$static_page->id}}">
{{status_formatted($static_page->status)}}
</span>
<label class="switch switch-square switch-success">
<input
type="checkbox"
onclick="updateStatus({{$static_page->id}}, '{{tr("static_page")}}')"
id="statusSwitch{{$static_page->id}}"
class="switch-input is-invalid" {{$static_page->status ? 'checked' : ''}}
/>
<span class="switch-toggle-slider">
<span class="switch-on"></span>
<span class="switch-off"></span>
</span>
</label>
</td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-label-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">{{tr('actions')}}</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{ route('admin.static_pages.show', $static_page) }}" class="dropdown-item">{{tr('view')}}</a></li>
<li><a class="dropdown-item" href="{{ route('admin.static_pages.edit', $static_page) }}" class="dropdown-item">{{tr('edit')}}</a></li>
<li><a class="dropdown-item" href="{{ route('admin.static_pages.destroy', $static_page) }}" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#staticPageDeleteModal{{ $static_page->id }}">{{tr('delete')}}</a></li>
</ul>
</div>
</td>
</tr>
@empty
<tr>
<td colspan="12" class="text-center">
<span class="fw-medium no-data-frame-card">
<img src="{{asset('images/no-data.png')}}" alt="No Data" class="no-data-avater">
<h3> {{tr('no_data_found')}} </h3>
</span>
</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
@if($static_pages->isNotEmpty())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-end pagination-margin">
<li class="page-item prev">
<li> {{ $static_pages->withQueryString()->links('pagination::bootstrap-4') }}</li>
</li>
</ul>
</nav>
@endif
</div>
@endsection
Back to Directory
File Manager