@extends('layouts.app')

@section('title', 'Type partenaire')

@section('content')
 <div class="pagetitle">
      <h1>Modification du type partenaire</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="index.html">Acceuil</a></li>
          <li class="breadcrumb-item">Ministère</li>
          <li class="breadcrumb-item active">Type partenaire</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->
    <section class="section">
      <div class="row">
        <div class="col-lg-12">
        <div class="card">
    <div class="card-body">
        <h5 class="card-title">Modifier le type ministère : {{ $typepartenaire->nom }}</h5>

        <form action="{{ route('typepartenaires.update', $typepartenaire->id) }}" method="POST" class="row g-3">
            @csrf
            @method('POST')

            <div class="col-md-6">
                <label for="code" class="form-label">Type</label>
                <input type="text" class="form-control" id="type" name="type" value="{{ old('type',  $typepartenaire->type)  }}" required>
            </div>

        

            <div class="col-12">
 <label for="description" class="form-label">Description</label>
                <textarea class="form-control" id="description" name="description" rows="3">{{ old('description', $typepartenaire->description) }}</textarea>
            </div>

            <div class="text-center">
                <button type="submit" class="btn btn-primary">Mettre à jour</button>
                <a href="{{ route('typepartenaires.index') }}" class="btn btn-secondary">Annuler</a>
            </div>
        </form>
    </div>
</div>

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