<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title></title>
  <link
    href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
    rel="stylesheet"
  >
</head>

<body>
  <div class="container mt-2">
    <div class="row">
      <div class="col-lg-12 margin-tb">
        <div class="pull-left mb-2">
          <h2>Add Apple</h2>
        </div>
        <div class="pull-right">
          <a
            class="btn btn-primary"
            href="{{ route('apples.index') }}"
          > Back</a>
        </div>
      </div>
    </div>
    <div class="alert alert-success mb-1 mt-1">
      123321
    </div>
    <form
      action="{{ route('apples.store') }}"
      method="POST"
      enctype="multipart/form-data"
    >
      @csrf
      <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
          <div class="form-group">
            <strong>Apple Name:</strong>
            <input
              class="form-control"
              name="name"
              type="text"
              placeholder="Apple Name"
            >
            @error('name')
              <div class="alert alert-danger mb-1 mt-1">{{ $message }}</div>
            @enderror
          </div>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-12">
          <div class="form-group">
            <strong>Apple Email:</strong>
            <input
              class="form-control"
              name="email"
              type="email"
              placeholder="Apple Email"
            >
            @error('email')
              <div class="alert alert-danger mb-1 mt-1">{{ $message }}</div>
            @enderror
          </div>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-12">
          <div class="form-group">
            <strong>Apple Address:</strong>
            <input
              class="form-control"
              name="address"
              type="text"
              placeholder="Apple Address"
            >
            @error('address')
              <div class="alert alert-danger mb-1 mt-1">{{ $message }}</div>
            @enderror
          </div>
        </div>
        <button
          class="btn btn-primary ml-3"
          type="submit"
        >Submit</button>
      </div>
    </form>
  </div>
</body>

</html>
