@extends('layouts.master_backend') @section('content')

{{lang_trans('heading_filter_expense')}}

{{ Form::open($search_data,array('url'=>route('search-expenses'),'id'=>"search-expense", 'class'=>"form-horizontal form-label-left")) }}
{{Form::select('category_id',$category_list,null,['class'=>"form-control",'placeholder'=>lang_trans('ph_select')])}}
{{Form::text('date_from',null,['class'=>"form-control datepicker", 'placeholder'=>lang_trans('ph_date_from')])}}
{{Form::text('date_to',null,['class'=>"form-control datepicker", 'placeholder'=>lang_trans('ph_date_to')])}}

{{ Form::close() }}

{{lang_trans('heading_expense_list')}}


@php $totalAmount = 0; @endphp @foreach($datalist as $k=>$val) @php $totalAmount = $totalAmount+$val->amount; @endphp @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_category')}} {{lang_trans('txt_title')}} {{lang_trans('txt_amount')}} {{lang_trans('txt_date')}} {{lang_trans('txt_remark')}} {{lang_trans('txt_action')}}
{{$k+1}} {{$val->category->name}} {{$val->title}} {{getCurrencySymbol()}} {{$val->amount}} {{dateConvert($val->datetime,'d-m-Y')}} {{$val->remark}}
{{lang_trans('txt_grand_total')}} {{getCurrencySymbol()}} {{numberFormat($totalAmount)}}
@endsection