<?
date_default_timezone_set("Asia/Bangkok");
$title = 'Add billing item';
$date = date('Y-m-d');
$strNama = '';
$id = '';
$strAmount='';
$strDescription ='';

if($billingItems != null){
    $id = $billingItems[0]->id;
    $billingId = $billingItems[0]->billing_id;
    $strDescription = $billingItems[0]->description;
    $strAmount = $billingItems[0]->amount;
}
?>

<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="AR pendiri, merupakan kepanjangan dari Abdul Rahman (AR) yang memulai usaha bisnis pertamanya dibidang Ladscape atau taman pada tahun 2018.">
    <meta name="author" content="AR Group">
    <title>PT. AR GROUP BERKAH BERSAMA</title>

    <!-- font icons -->
    <!--<link rel="stylesheet" href="assets/vendors/themify-icons/css/themify-icons.css">-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <!-- 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')
    
    <style></style>
  
</head>

<body data-spy="scroll" data-target=".navbar" data-offset="40" id="home">
    @include('admin/header_admin')
        <form class="form-group" style="text-align:left;padding:20px;border:thin solid gray;width:90%;max-width:400px;margin:20px auto" action="billing-items" method="post">
            @csrf
            <input type="hidden" name="id" value="{{$id}}">
            <input type="hidden" name="billing_id" value="{{$billingId}}">
            <label>Item Description :</label> 
            <input class="form-control" id="description" name="description" type="text" placeholder="Type description" value="{{$strDescription}}"/>
            <label>Total :</label>
            <input class="form-control" id="amount" name="amount" type="text" placeholder="Type total" value="{{$strAmount}}">
            <br>
            <button type="submit"  value = "Add student" class="btn btn-primary">Simpan</button>
            <button class="btn btn-secondary" onclick="window.history.back();return false">Cancel</button>
        </form>
</html>