@extends('layouts.admin') @section('page-title') {{__('Manage Credit Notes')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
@can('create credit note') @endcan
@endsection @section('content')
@foreach ($invoices as $invoice) @if(!empty($invoice->creditNote)) @foreach ($invoice->creditNote as $creditNote) @endforeach @endif @endforeach
{{__('Invoice')}} {{__('Customer')}} {{__('Date')}} {{__('Amount')}} {{__('Description')}} {{__('Action')}}
{{ AUth::user()->invoiceNumberFormat($invoice->invoice_id) }} {{ (!empty($invoice->customer)?$invoice->customer->name:'-') }} {{ Auth::user()->dateFormat($creditNote->date) }} {{ Auth::user()->priceFormat($creditNote->amount) }} {{!empty($creditNote->description)?$creditNote->description:'-'}} @can('edit credit note') @endcan @can('edit credit note')
{{Form::open(array('route'=>array('invoice.delete.credit.note', $creditNote->invoice,$creditNote->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endsection