@extends('admin/layouts/default') {{-- Page title --}} @section('title') Edit a transaction @parent @stop @section('content')

Transactions

Edit transaction

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($transaction, ['method' => 'PATCH', 'action' => ['TransactionsController@update', $transaction->id]]) !!}
{!! Form::label('txn_id', 'Txn: ') !!} {!! Form::select('txn_id', $txn, null, ['class' => 'form-control']) !!}
{!! Form::label('type', 'Type: ') !!} {!! Form::text('type', null, ['class' => 'form-control']) !!}
{!! Form::label('agent_id', 'Agent: ') !!} {!! Form::select('agent_id', $agent, null, ['class' => 'form-control']) !!}
{!! Form::label('seller_id', 'Seller: ') !!} {!! Form::select('seller_id', $seller, null, ['class' => 'form-control']) !!}
{!! Form::label('client_id', 'Client: ') !!} {!! Form::select('client_id', $client, null, ['class' => 'form-control']) !!}
{!! Form::label('offer_id', 'Offer: ') !!} {!! Form::select('offer_id', $offer, null, ['class' => 'form-control']) !!}
{!! Form::label('amount', 'Amount: ') !!} {!! Form::text('amount', null, ['class' => 'form-control']) !!}
{!! Form::label('details', 'Details: ') !!} {!! Form::textarea('details', null, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::submit('Update', ['class' => 'btn btn-primary form-control']) !!}
{!! Form::close() !!}
@stop