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

if($billings != null){
    $billingId = $billings[0]->id;
    $strDiscount = $billings[0]->discount;
    $strTransport = $billings[0]->transport;
}

?>

<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-item-discount" method="post">
            @csrf
            <input type="hidden" name="billing_id" value="{{$billingId}}">
            <label>Biaya Transportasi :</label>
            <input class="form-control" id="transport" name="transport" type="text" placeholder="Type total" value="{{$strTransport}}">
            <label>Discount :</label>
            <input class="form-control" id="discount" name="discount" type="text" placeholder="Type total" value="{{$strDiscount}}">
            <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>