@extends('layouts.app')

@section('content')
<div class="container py-4">
    <div class="row justify-content-center">
        <div class="col-lg-10">

            <div class="d-flex align-items-center mb-4">
                <a href="{{ route('mailmove.index') }}" class="btn btn-sm btn-outline-secondary me-3" id="btn-back">
                    <i class="bi bi-arrow-left"></i>
                </a>
                <h1 class="h4 mb-0 fw-bold">Edit MailMove <span class="text-muted">#{{ $mailmove->id }}</span></h1>
            </div>

            <div class="card shadow-sm border-0">
                <div class="card-body p-4">
                    <form method="POST" action="{{ route('mailmove.update', $mailmove) }}" id="mailmove-edit-form">
                        @csrf
                        @method('PUT')

                        @include('mailmove._form')

                        <div class="d-flex gap-2 mt-4 pt-2 border-top">
                            <button type="submit" class="btn btn-primary" id="btn-save-edit">
                                <i class="bi bi-check-lg me-1"></i> Save Changes
                            </button>
                            <a href="{{ route('mailmove.index') }}" class="btn btn-outline-secondary" id="btn-cancel-edit">
                                Cancel
                            </a>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
@endsection
