<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    
    <!-- Bootstrap + Creative Studio main styles -->
	<link rel="stylesheet" href="assets/css/creative-studio.css">
	<!--<link rel="stylesheet" href="assets/css/styles.css">-->

    @include('admin/ar-css')
  
</head>

<body>
@include('admin/header_admin')
    <div class="container">    
        <div class="row">
            <form class="form-group" style="text-align:left;margin:20px auto;max-width:400px" action="/billing-insert" method="post">
                @csrf
                <div style="text-align:center">Create new billing</div>
                <input type="hidden" name="id" value="{{ $billing_id }}">
                
                <div class="form-group">
                    <label>Customer:</label>
                    <select class="form-control" name="cust_id">
                        <option selected>Pilih Customer</option>
                        @foreach($customers as $customer)
                            <option value="{{$customer->id}}">{{$customer->name}}</option>
                        @endforeach
                    </select>
                </div>
                
                <button type="submit" class="btn btn-primary">Simpan</button>
                <button class="btn btn-secondary" onclick="window.history.back();return false">Cancel</button>
        
            </form>
        </div>        
    </div>
    
</body>
</html>