@extends('layouts.admin')

@section('content')
    <div class="row">
      <div class="col-8">
        <div class="card">
          <div class="card-body">
            <div class="d-md-flex align-items-center">
              <div>
                <h4 class="card-title">Pemesanan</h4>
              </div>
            </div>
            <form method="POST" action="{{ route('admin.order') }}" enctype="multipart/form-data">
                @csrf @method('PUT')
                <input type="hidden" name="id" value="{{ $order->id }}">
                <div class="mb-3">
                    <label for="status" class="form-label">Status</label>
                    <select name="status" id="status" class="form-control" required>
                      <option value="">Silahkan Pilih</option>
                       <option value="0" @if ($order->status == 0)
                            selected
                        @endif>Sedang Di Proses</option>

                        <option value="1" @if ($order->status ==1)
                            selected
                        @endif>Sedang Dalam Perjalanan</option>

                        <option value="2" @if ($order->status == 2)
                            selected
                        @endif>Sedang Selesai </option>
                    </select>
                </div>
                <button type="submit" class="btn btn-primary rounded-2">Simpan</button>
            </form>
          </div>
        </div>
      </div>
    </div>
@endsection