Viewing File: /home/ubuntu/btcthrottle-backend/resources/views/admin/static_pages/view.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')
@include('admin.static_pages.modals')
<div class="card mb-4">
<div class="card-header header-elements d-flex justify-content-between align-items-center">
<h5 class="m-0 me-2">{{tr('view_static_page')}} - {{$static_page->unique_id ?: tr('na')}}</h5>
<div class="d-flex align-items-center">
<div class="card-title-elements ms-auto">
<a href="{{route('admin.static_pages.edit', $static_page)}}" class="text-body" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="tooltip-info" title="{{tr('edit')}}"><i class="ti ti-edit ti-sm me-2 text-info"></i></a>
<a href="{{route('admin.static_pages.destroy', $static_page)}}" class="text-body delete-record" data-bs-toggle="modal" data-bs-target="#staticPageDeleteModal{{$static_page->id}}"><i class="ti ti-trash ti-sm mx-2 text-danger" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="tooltip-danger" title="{{tr('delete')}}"></i></a>
</div>
</div>
</div>
<div class="card-body border-top">
<div class="row">
<div class="col-6">
<div class="table-responsive text-nowrap">
<table class="table table-bordered">
<tbody>
<tr>
<td><span class="fw-medium">{{tr('title')}}</span></td>
<td class="text-danger">{{$static_page->title ? : tr('na')}}</td>
</tr>
<tr>
<td><span class="fw-medium">{{tr('type')}}</span></td>
<td>{{$static_page->type ? : tr('na')}}</td>
</tr>
<tr>
<td><span class="fw-medium">{{tr('footer_section')}}</span></td>
<td class="text-danger">{{footer_section_formatted($static_page->footer_section ?: 0)}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-6">
<div class="table-responsive text-nowrap">
<table class="table table-bordered">
<tbody>
<tr>
<td><span class="fw-medium">{{tr('status')}}</span></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>
</tr>
<tr>
<td><span class="fw-medium">{{tr('created_at')}}</span></td>
<td>{{ common_date($static_page->created_at, auth()->user()->timezone)}}</td>
</tr>
<tr>
<td><span class="fw-medium">{{tr('updated_at')}}</span></td>
<td>{{ common_date($static_page->updated_at, auth()->user()->timezone)}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="d-flex gap-4 align-items-center p-4">
<div>
<h5 class="card-title">{{ tr('description') }}</h5>
<p class="card-text">{!! $static_page->description ?: tr('na') !!}</p>
</div>
</div>
</div>
@endsection
Back to Directory
File Manager