@extends('layouts.app') @section('stitle', 'Report') @section('title', __('messages.PurchaseOrderReport')) @section('content')
{{-- @if(session()->get('title') == "success")--}} {{-- --}} {{-- @elseif (session()->get('title') == "error")--}} {{-- --}} {{-- @elseif($errors->any())--}} {{-- --}} {{-- @endif--}}

{{__('messages.CreateReport')}}

{{-- @csrf--}}
@if($data->isNotEmpty())
@foreach($data as $task) @endforeach
{{__('messages.REFERENCE')}} {{__('messages.PurchasingReference')}} {{__('messages.Warehouse')}} {{__('messages.Supplier')}} {{__('messages.COST')}} {{__('messages.VAT')}} {{__('messages.TotalAmount')}} ({{Auth::user()->business->currency->symbol}}) {{__('messages.PurchaseType')}} {{__('messages.CreatedBy')}} {{__('messages.created_at')}}
{{ $task->reference }} {{ $task->pr_reference }} {{ $task->poWarehouse->name }} {{ $task->poSupplier->name }} {{ $task->cost }} {{ $task->tax }} {{ $task->total }} {{ $task->poType->name }} {{ $task->users->name}} {{ $task->created_at}}
{{__('messages.total')}} {{ $data->sum('cost') }} {{ $data->sum('tax') }} {{ $data->sum('total') }}
@else
No Data Found! Adjust the date & filters in the report to get more specific results.
@endif
@endsection @push('my_scripts') @endpush