@extends('layouts.master')
@section('title','Bia')
@section('content')
        
        
        <!-- Content -->
        <div class="content">
            <div class="animated fadeIn">
                <div class="row">

                    <div class="col-md-12">
                        
                            {{-- <div class="card-header">
                                <strong class="card-title">I. INFORMASI ORGANISASI & KEGIATAN</strong>
                            </div> --}}
                           

                                <form action="{{ route('location.update', ['location' => $data->id]) }}" method="post" enctype="multipart/form-data" class="form-horizontal">
                                    @csrf
                                    @method('PUT')
                                    <div class="card">
                                        <div class="card-body card-block">
                                            
                                            

                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Nama Lokasi</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <input type="text" id="name" name="name" class="form-control" value="{{ $data->name }}" required>
                                                   
                                                </div>
                                            </div>

                                            <div class="row form-group">
                                                <div class="col col-md-2">
                                                    <label for="nama_group" class="form-control-label">Deskripsi</label>
                                                </div>
                                                <div class="col-12 col-md-10">
                                                    <input type="text" id="description" name="description" class="form-control" value="{{ $data->description }}">
                                                   
                                                </div>
                                            </div>

                                            
                                           
                                        </div>
                                    </div>
                                    
                                   
                                    
                                    <br/>
                                    <button id="btnSave" type="submit" class="btn btn-primary">
                                        Simpan
                                    </button>
                                    <a href="{{ route('location.index') }}" class="btn btn-default">
                                        Batal
                                    </a>
                                </form>
                            
                           
                        
                    </div>


                </div>
            </div><!-- .animated -->
        </div><!-- .content -->
        <!-- /.content -->
@section('js')


@endsection       


@endsection