@extends('admin.layout') @section('title', 'Sticky boxes') @push('styles') @endpush @section('content')

Sticky boxes

Small boxes pinned to the left or right edge of every public page. If several are switched on for the same side, the first one is shown. Visitors can close a box for their visit.

@foreach($promos as $promo)
@include('admin.partials.promo-form', ['promo' => $promo, 'action' => route('admin.promos.update', $promo), 'method' => 'PUT', 'submit' => 'Save'])
@csrf @method('DELETE')
@endforeach

Add a sticky box

@include('admin.partials.promo-form', ['promo' => $new, 'action' => route('admin.promos.store'), 'method' => 'POST', 'submit' => 'Add sticky box'])
@endsection