@extends('layouts.admin') @push('script-page') @endpush @section('page-title') {{__('Transaction')}} @endsection @section('content')
{{ Form::open(array('route' => array('vender.transaction'),'method' => 'GET','id'=>'frm_submit')) }}
{{ Form::label('date', __('Date'),['class'=>'text-type']) }} {{ Form::text('date', isset($_GET['date'])?$_GET['date']:null, array('class' => 'form-control datepicker-range')) }}
{{ Form::label('category', __('Category'),['class'=>'text-type']) }} {{ Form::select('category', [''=>'All']+$category,isset($_GET['category'])?$_GET['category']:'', array('class' => 'form-control select2')) }}
{{ Form::close() }}
@foreach ($transactions as $transaction) @endforeach
{{__('Date')}} {{__('Amount')}} {{__('Account')}} {{__('Type')}} {{__('Category')}} {{__('Description')}}
{{ Auth::user()->dateFormat($transaction->date)}} {{ Auth::user()->priceFormat($transaction->amount)}} {{ !empty($transaction->bankAccount())? $transaction->bankAccount()->bank_name .' '.$transaction->bankAccount()->holder_name:''}} {{ $transaction->type}} {{ $transaction->category}} {{ $transaction->description}}
@endsection