{{-- @extends('layouts.admin') --}} @include('new_layouts.header') {{-- @section('page-title') {{ucwords($project->project_name).__("'s Expenses")}} @endsection --}} {{-- @section('breadcrumb') @endsection --}} @include('construction_project.side-menu')

Expenses

@can('create expense') @endcan
@if(Gate::check('edit expense') || Gate::check('delete expense')) @endif @if(isset($project->expense) && !empty($project->expense) && count($project->expense) > 0) @foreach($project->expense as $expense) @if(Gate::check('edit expense') || Gate::check('delete expense')) @endif @endforeach @else {{-- @if(Gate::check('edit expense') || Gate::check('delete expense')) @else @endif --}} @endif
{{__('Attachment')}} {{__('Name')}} {{__('Date')}} {{__('Amount')}}{{__('action')}}
@if(!empty($expense->attachment)) @else @endif {{ $expense->name }} @if(!empty($expense->task)){{ $expense->task->name }}@endif {{ (!empty($expense->date)) ? Utility::getDateFormated($expense->date) : '-' }} {{ \Auth::user()->priceFormat($expense->amount) }}
{!! Form::open(['method' => 'DELETE', 'route' => ['projects.expenses.destroy',$expense->id],'id'=>'delete-expense-'.$expense->id]) !!}
@can('edit expense') @endcan
@can('delete expense') @endcan
{!! Form::close() !!}
{{__('No Expense Found.')}}
{{__('No Expense Found.')}}
@include('new_layouts.footer')