@extends('pdf') @section('content-area')

@lang('All purchases')

@foreach ($purchases as $key => $purchase) @endforeach
@lang('#') @lang('Purchase No') @lang('Purchase Date') @lang('Supplier') @lang('Sub Total') @lang('Transport') @lang('Discount') @lang('Net Total') @lang('Total Due') @lang('Status')
{{ ++$key }} {{ config('config.purchasePrefix') . '-' . $purchase['purchase_no'] }} {{ \Carbon\Carbon::parse($purchase['purchase_date'])->format('d-M-Y') }} {{ $purchase['supplier']['name'] }} @currency($purchase['sub_total']) @currency($purchase['transport']) @currency($purchase['discount']) @currency($purchase['calculated_total']) @currency($purchase['calculated_due']) @if ($purchase['status']) @lang('Active') @else @lang('Inactive') @endif
@endsection