@extends('layouts.app') @section('content')
{{ _lang('Add New') }}
{{ _lang('List Purchase Order') }}
@php $currency = currency(); @endphp @php $date_format = get_company_option('date_format','Y-m-d'); @endphp @foreach($purchases as $purchase) @if($purchase->order_status == 1) @elseif($purchase->order_status == 2) @elseif($purchase->order_status == 3) @endif @endforeach
{{ _lang('Order Date') }} {{ _lang('Supplier') }} {{ _lang('Order Status') }} {{ _lang('Grand Total') }} {{ _lang('Paid') }} {{ _lang('Due') }} {{ _lang('Payment Status') }} {{ _lang('Action') }}
{{ date($date_format, strtotime($purchase->order_date)) }} {{ $purchase->supplier->supplier_name }}{{ _lang('Ordered') }}{{ _lang('Pending') }}{{ _lang('Received') }}{{ decimalPlace($purchase->grand_total, $currency) }} {{ $purchase->grand_total > $purchase->paid ? decimalPlace(($purchase->grand_total - $purchase->paid),$currency) : decimalPlace(0, $currency) }} @if($purchase->payment_status == 0) {{ _lang('Due') }} @else {{ _lang('Paid') }} @endif
@endsection