@extends('layouts.app') @section('stitle', __('messages.PRReport')) @section('title', __('messages.PRReport')) @section('content')
@if(session()->get('title') == "success") @elseif (session()->get('title') == "error") @endif
@if(is_array($date))

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

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

@else

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

@endif

Supplier

@if($supplier == 'all') @else @endif

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

@if($purchase_type == 1) @elseif($purchase_type == 2) @else @endif
@foreach($data as $task) @endforeach
{{__('messages.REFERENCE')}} {{__('messages.Supplier')}} {{__('messages.Warehouse')}} {{__('messages.COST')}} {{__('messages.VAT')}} {{__('messages.TotalAmount')}} ({{Auth::user()->business->currency->symbol}}) {{__('messages.TYPE')}} {{__('messages.STATUS')}} {{__('messages.CreatedBy')}} {{__('messages.created_at')}}
{{ $task->reference }} {{ $task->suppliers->name }} {{ $task->warehouse->name }} {{ $task->cost }} {{ $task->tax }} {{ $task->total }} {{ $task->purchaseType->name }} {{ $task->status }} {{ $task->user->name}} {{ $task->created_at}}
{{__('messages.total')}} {{ $data->sum('cost') }} {{ $data->sum('tax') }} {{ $data->sum('total') }}
@endsection @push('my_scripts') @endpush