Q:

Laravel: Getting the Value of a Field In a Table

What I'm trying to do is get the available credits from the users table and 'credits' field and get the price of the current item in the foreach loop which is the 'normalprice' field in the 'items' table. 
When a user fills in the amount he wants to put toward the 'normalprice' of an item, i want to subtract from the number in his 'credits' field, and create a new variable for 'This is the price of the item after you've put credits toward it' and display it. 
The users table and items table are on a many-to-many relationship, and i've been able to display a user item by doing
$user->item

What i've done is bellow is wrong, because 'normalprice' in '$item->normalprice;' is not a property. I'm trying to find out how I can make $itemprice equal the value of 'normalprice' in the current @foreach ($user->items as $item)
Controller:
    public function allocateCredit(){
    $validator = Validator::make(Input::all(),
    array(
        'puttoward' =>  'Integer',
    ));
    $user = Auth::user();
    $items  = Item::all();
    $userItems = Auth::user()->items;
    $itemprice = $item->normalprice;
    $available = $user->credits;
    $goodtogo = ($available > $itemprice) ? TRUE : FALSE;
    if($goodtogo === true){
        $howmuch = Input::get('puttoward');
        $newavailable =  $howmuch - $available;
        $itembalance = $itemprice - $howmuch;
        $user->credits = $newavailable;
    }
    if($user->save()){
        return Redirect::route('account')->with('global', 'Success.');
    }
}    

View:
            @foreach ($user->items as $item)
        <div class="sep">
            <div class="nameIt">
                {{ $item->name }}
                <form action="{{ URL::route('allocate-credits-post') }}" method="post" role="form">
                    <div class="form-group">
                    <label for="exampleInputPassword1">Allocate credits</label>
                    <input type="intiger" class="form-control" name="puttoward" placeholder="$0.00">
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                    {{ Form::token() }}
                </form>

A:

Since you're using a form submission to call your Controller, why don't you populate the $item->normalprice into the form as hidden type like:
<input type="hidden" name="NormalPrice" value="{{$item->normalprice}}">

Then access the value in your controller with Input::get('NormalPrice')
or if that is not desired for security reason, then you can populate the $item->id instead and find out the price for that ID in your controller.

