@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">Profil Perusahaan</h4>
              </div>
            </div>
            <form method="POST" action="{{ route('admin.about') }}" enctype="multipart/form-data">
                @csrf @method('PUT')
                <input type="hidden" name="id" value="{{ $about->id }}">
                <div class="mb-3">
                    <label for="description" class="form-label">Deskripsi</label>
                    <textarea name="description" id="description" cols="30" rows="10" class="form-control">{{ $about->description }}</textarea>
                </div>
                <div class="mb-3">
                    <label for="image" class="form-label">Gambar</label>
                    <input type="file" name="image" class="form-control" id="image">
                </div>
                
                <br/>

                <img src="{{ asset('img_assets/about/'. $about->image) }}" style="margin-bottom: 20px; width: 100px; height: 100px; object-fit: contain">

                <br/>
                
                <button type="submit" class="btn btn-primary rounded-2">Simpan</button>
            </form>
          </div>
        </div>
      </div>
    </div>
@endsection