@extends('layouts.admin') @section('page-title') {{__('Manage Debit Notes')}} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
@permission('purchase debitnote create') @endpermission
@endsection @section('content')
@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->vendor)?$bill->vendor->name:'-') }} {{ Auth::user()->dateFormat($debitNote->date) }} {{ Auth::user()->priceFormat($debitNote->amount) }} {{!empty($debitNote->description)?$debitNote->description:'-'}} @permission('purchase debitnote edit') @endpermission @permission('purchase debitnote delete')
{!! Form::open(['method' => 'DELETE', 'route' => array('bill.delete.debit.note', $debitNote->bill,$debitNote->id),'id'=>'delete-form-'.$debitNote->id]) !!} {!! Form::close() !!}
@endpermission
@endsection