dbfdg @extends('layouts.admin') @section('page-title') {{__('Manage Expenses')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
@can('create bill') @endcan
@endsection @section('content')
{{ Form::open(array('route' => array('expense.index'),'method' => 'GET','id'=>'frm_submit')) }}
{{Form::label('bill_date',__('Payment Date'),['class'=>'form-label'])}} {{ Form::text('bill_date', isset($_GET['bill_date'])?$_GET['bill_date']:null, array('class' => 'form-control month-btn','id'=>'pc-daterangepicker-1','readonly')) }}
{{ Form::label('category', __('Category'),['class'=>'form-label'])}} {{ Form::select('category',$category,isset($_GET['category'])?$_GET['category']:'', array('class' => 'form-control select')) }}
{{ Form::close() }}
@if(Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill')) @endif @foreach ($expenses as $expense) @if(Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill')) @endif @endforeach
{{__('Expense')}} {{__('Category')}} {{__('Date')}} {{__('Status')}} {{__('Action')}}
{{ AUth::user()->expenseNumberFormat($expense->bill_id) }} {{ !empty($expense->category)?$expense->category->name:'-'}} {{ Auth::user()->dateFormat($expense->bill_date) }} {{ __(\App\Models\Invoice::$statues[$expense->status]) }} @can('show bill') @endcan @can('edit bill') @endcan @can('delete bill')
{!! Form::open(['method' => 'DELETE', 'route' => ['expense.destroy', $expense->id],'class'=>'delete-form-btn','id'=>'delete-form-'.$expense->id]) !!} {!! Form::close() !!}
@endcan
@endsection