@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(['method' => 'DELETE', 'route' => array('invoice.delete.credit.note', $creditNote->invoice,$creditNote->id),'class'=>'delete-form-btn','id'=>'delete-form-'.$creditNote->id]) !!} {!! Form::close() !!}
@endcan
@endsection