@extends('layouts.admin.layout') @section('content')
@include('partials._page_header', [ 'pageTitle' => 'Code Snippets', 'pageSubtitle' => 'Define reusable HTML blocks once, embed them anywhere with a tag.', 'addUrl' => url('/admin/widgets/create'), 'addLabel' => 'Add Snippet', ])
@include('partials.message') @if (count($getWidgets) > 0) @php $i = ($getWidgets->currentPage() - 1) * $getWidgets->perPage() + 1; @endphp @foreach ($getWidgets as $widgetData)
{{-- Card Header --}}
{{-- Snippet icon --}} {{ $widgetData->slug }} {{ ucfirst($widgetData->page) }} · #{{ $widgetData->display_order }}
{{ $widgetData->created_at->diffForHumans() }} @if (isset($widgetData->userInfo->name)) · {{ $widgetData->userInfo->name }} @endif Edit
{{-- Embed Tag Row --}}

Embed tag — copy and paste into any page

{{-- Code Preview --}}

HTML Content

@endforeach @else

No snippets yet

Create your first reusable code snippet.

Add Snippet
@endif {{ $getWidgets->links('layouts.pagination', ['search' => $build]) }}
@endsection @push('scripts') @endpush