@include('new_layouts.header') @include('accounting.side-menu')

{{__('Debit Note')}}

@can('create debit note') @endcan
@foreach ($bills as $bill) @if(!empty($bill->debitNote)) @foreach ($bill->debitNote as $debitNote) @endforeach @endif @endforeach
{{__('Bill')}} {{__('Vendor')}} {{__('Date')}} {{__('Amount')}} {{__('Description')}} {{__('Action')}}
{{ AUth::user()->billNumberFormat($bill->bill_id) }} {{ (!empty($bill->vender)?$bill->vender->name:'-') }} {{ Auth::user()->dateFormat($debitNote->date) }} {{ Auth::user()->priceFormat($debitNote->amount) }} {{!empty($debitNote->description)?$debitNote->description:'-'}}
@can('edit payment') @endcan @can('delete payment')
{!! Form::open(['method' => 'DELETE', 'route' => array('bill.delete.debit.note', $debitNote->bill,$debitNote->id),'id'=>'delete-form-'.$debitNote->id]) !!} {!! Form::close() !!}
@endcan
@include('new_layouts.footer')