@extends('layouts.app') @section('stitle', __('messages.PurchaseOrderSTitle')) @section('title', __('messages.PurchaseOrderSTitle')) @section('content')
@if(session()->get('title') == "success") @elseif (session()->get('title') == "error") @endif
@include('purchase_order.purchase_order_menu')
{{--

Table Hover Animation

--}}
@foreach($data as $purchase) @endforeach
{{__('messages.REFERENCE')}} {{__('messages.Supplier')}} {{__('messages.Destination')}} {{__('messages.COST')}} {{__('messages.VAT')}} {{__('messages.Total')}} ( {{ Auth::user()->business->currency->symbol ?? 'not set' }} ) {{__('messages.TYPE')}} {{__('messages.STATUS')}} {{__('messages.CREATED')}} {{__('messages.ACTIONS')}}
{{ $purchase->reference }} {{ $purchase->poSupplier->name }} {{ $purchase->poWarehouse->name }} {{ $purchase->cost }} {{ $purchase->tax }} {{ $purchase->total }} {{ $purchase->poType->name }} {{ $purchase->status }} {{ convertFromUTC($purchase->created_at, Auth::user()->business_id)}} @if ($purchase->status == 'approved' || $purchase->status == 'partial_received') @elseif ($purchase->status == 'received') @endif
@endsection