@extends('layouts.admin') @section('header-content') @endsection @section('content')
Filter @if( Auth::user()->can('modify_expenses')) @endif
All Expense
@if(!empty($user_expenses[0]))
@if( Auth::user()->can('modify_expenses')) @endif @foreach($user_expenses as $key=>$expense) @if( Auth::user()->can('modify_expenses')) @endif @endforeach
# Sales Officer Saller Name Saller Phone # Expense Type Date AmountAction
{{$key+1}} @if(isset($expense->user)) {{$expense->user->firstname .' '.$expense->user->lastname}} @endif {{$expense->saller_name}} {{$expense->saller_phone_no}} @if(isset($expense->expense)){{$expense->expense->name}} @endif {{$expense->date}} {{$expense->amount}}
{!! method_field('DELETE') !!} {!! csrf_field() !!}

{{ $user_expenses->links() }}
@else

No Records Found

@endif
@endsection @section('footer-content') @endsection