@extends('layouts.admin')

@section('title', 'Edit Coupon')

@section('content')
    <section class="dashboard-head">
        <div>
            <span class="eyebrow">Sales</span>
            <h1>Edit Coupon</h1>
        </div>
        <a class="button ghost" href="{{ route('admin.coupons.index') }}">Back</a>
    </section>

    <section class="panel form-panel">
        <form method="POST" action="{{ route('admin.coupons.update', $coupon) }}" class="admin-form">
            @method('PATCH')
            @include('admin.coupons._form')
            <button class="button primary" type="submit">Update coupon</button>
        </form>
    </section>
@endsection
