@extends('layouts.master')

@section('title', 'Edit Tier -  System')

@section('page-title', 'Edit Tier')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header bg-primary text-white py-3">
                    <h5 class="mb-0"><i class="fas fa-layer-group me-2"></i>Edit Tier</h5>
                </div>
                <div class="card-body">
                    <form action="{{ route('administration.tiers.update', ['id' => $userTier->tier_id]) }}" method="POST">
                        @csrf
                        @method('PUT')
                        <div class="mb-3">
                            <label for="tier_name" class="form-label">Tier Name</label>
                            <input type="text" class="form-control" id="tier_name" name="tier_name" value="{{ $userTier->tier_name }}" required>
                        </div>
                        <div class="mb-3">
                            <label for="description" class="form-label">Description</label>
                            <textarea class="form-control" id="description" name="description" rows="3">{{ $userTier->description }}</textarea>
                        </div>
                        <button type="submit" class="btn btn-primary">Update Tier</button>
                        <a href="{{ route('administration.tiers.index') }}" class="btn btn-secondary">Cancel</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
