@extends('layouts.admin') @section('title', 'Block library') @section('admin')

Block Library

Reusable sections you can drop into any email template or campaign. Capture them from the editor with "+ Save as Block", or build raw MJML below.

New block
@forelse($blocks as $b) @php $hasDesign = ! empty($b->design_json); @endphp
{{ $b->category }} @if($hasDesign) design @else mjml @endif
@csrf @method('DELETE')

{{ $b->name }}

@if($b->description)

{{ $b->description }}

@endif @if($hasDesign)
Captured Unlayer design (insertable via the editor's Block Library drawer).
@else
{{ \Illuminate\Support\Str::limit($b->mjml, 200) }}
@endif
@empty
No reusable blocks yet. Build one in any email editor and click "+ Save as Block", or click New block to author MJML directly.
@endforelse
@endsection