<?php

use Illuminate\Database\Seeder;
use App\Head;

class HeadSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
   public function run()
   {
       $count = -1;

       $head = new Head;

       $data = array();

       // CURRENT ASSET
       // $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '001-00', 'name' => 'Account Receivable', 'nature' => 'Current Assets','flag' => '1', 'created_at' => now(),'updated_at' => now()];

       $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '005-00', 'name' => 'Cash Account', 'nature' => 'Current Assets','flag' => '1', 'created_at' => now(),'updated_at' => now()];

       $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '006-00', 'name' => 'Bank Account', 'nature' => 'Current Assets','flag' => '1', 'created_at' => now(),'updated_at' => now()];

       $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '007-00', 'name' => 'Loan Account', 'nature' => 'Current Assets','flag' => '1', 'created_at' => now(),'updated_at' => now()];

       // END

       // CAPITAL EQUITY
       // $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '008-00', 'name' => 'Equity Introduce', 'nature' => 'Capital / Equity','flag' => '1', 'created_at' => now(),'updated_at' => now()];
       // END

       // Long TERM LIABILITY
       // $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '002-00', 'name' => 'Account Payable', 'nature' => 'Long-term Liability','flag' => '1', 'created_at' => now(),'updated_at' => now()];
       // END

       // Long TERM LIABILITY
       $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '003-00', 'name' => 'Account Payable', 'nature' => 'Short-term Liability','flag' => '1', 'created_at' => now(),'updated_at' => now()];

       // $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '010-00', 'name' => 'Inventory Purchases', 'nature' => 'Short-term Liability','flag' => '1', 'created_at' => now(),'updated_at' => now()];
       // END

       // REVENUE
         $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '004-00', 'name' => 'Revenue', 'nature' => 'Revenue','flag' => '1', 'created_at' => now(),'updated_at' => now()];
       // END REVENUE

       
       
       //  // EXPENSE 
       // $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '009-00', 'name' => 'Commissions', 'nature' => 'Expense','flag' => '1', 'created_at' => now(),'updated_at' => now()];

      

      // $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '011-00', 'name' => 'Inventory Expense', 'nature' => 'Expense','flag' => '1', 'created_at' => now(),'updated_at' => now()];

       $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '008-00', 'name' => 'Salary Account', 'nature' => 'Expense','flag' => '1', 'created_at' => now(),'updated_at' => now()];

        $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '009-00', 'name' => 'Work in progress', 'nature' => 'Current Assets','flag' => '1', 'created_at' => now(),'updated_at' => now()];

        $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '009-00', 'name' => 'Payable to vendor', 'nature' => 'Short-term Liability','flag' => '1', 'created_at' => now(),'updated_at' => now()];

        $data[++$count] = ['branch' => '1','bill_category_id'=>'0','code' => '009-00', 'name' => 'Opening Balance', 'nature' => 'Current Assets','flag' => '1', 'created_at' => now(),'updated_at' => now()];


       // END



       foreach ($data as $rows)
       {
           $head->storeHead($rows);
       }
   }
}
