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