@extends('admin.layouts.master')

@section('content')
    <!-- row -->
    <div class="row">
        <div class="col-lg-12 col-md-12">
            <div class="card">
                <div class="card-body">
                    <div class="main-content-label mg-b-5">
                        {{ trans('prefixes.update_prefix') }} {{ $prefix->name }}
                    </div>
                    <form action="{{ route('prefixes.update', $prefix->id) }}" method="post">
                        @method('put')
                        @csrf
                        <div class="pd-30 pd-sm-40 bg-gray-200">
                            <div class="row row-xs">
                                <div class="col-md-5 mg-t-10 mg-md-t-0">
                                    <input class="form-control @error('name') is-invalid @enderror" placeholder="{{ trans('dashboard.name') }}" type="text" name="name" value="{{ $prefix->name }}">
                                    @error('name')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>

                                <div class="col-md mt-4 mt-xl-0">
                                    <button class="btn btn-main-primary btn-block">{{ trans('dashboard.edit') }}</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
