@extends('admin.layouts.master') @section('content')
There was an error in this invoice ({{ $ecoInvoiceNo }})
@if(round($cumilativeprice, 2) !== round($totalcost, 2))

The invoive total does not match the calculated cost of the items
Invoice total: £{{ (float) $totalcost }}
Calculated total: £{{ (float) $cumilativeprice}}
Discrepency: £{{ ($cumilativeprice - $totalcost) }}

@endif @if(count($notfound) > 0)

The following invoice numbers cannont be found

@foreach($notfound as $item) @endforeach
Order ID
BW{{ $item['orderno'] }}

@endif @if(count($notexported) > 0)

The following invoice numbers have not been exported

@foreach($notexported as $item) @endforeach
Order ID
BW{{ $item }}

@endif @if(count($wrongprice) > 0)

The following invoice numbers have a price discrepancy

@foreach($wrongprice as $item) @endforeach
Order ID BW Calculated Cost Invoiced Amount Discrepency
BW{{ $item['orderno'] }} £{{ $item['bwprice'] }} £{{ $item['supplierprice'] }} £{{ number_format(($item['supplierprice']-$item['bwprice']), 2) }}

@endif @if(count($paidorders) > 0)

The following invoice numbers have already been marked as paid

@foreach($paidorders as $item) @endforeach
Order ID Previous Paid Invoice ID
BW{{ $item['orderno'] }} {{ $item['paidinv'] }}
@endif

Continue anyway and mark all as paid?

{!! Form::open(array('files' => true, 'route' => config('quickadmin.route').'.suppliermarkpaid', 'id' => 'form-with-validation', 'class' => 'form-horizontal')) !!} {!! Form::submit( 'Mark all as Paid', array('class' => 'btn btn-primary')) !!} {{ Form::hidden('SupplierInvNo', $ecoInvoiceNo) }} CancelDownload PDF @foreach ($orders as $order) {{ Form::hidden('orderids[]', $order->ID) }} @endforeach {!! Form::close() !!}
@endsection