@if(session()->get('title') == "success")
Success
{{ session()->get('message') }}
@elseif (session()->get('title') == "error")
Error
{{ session()->get('message') }}
@endif
@if(is_array($date))
@else
@endif
{{__('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')}} |
@foreach($data as $task)
{{ $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}} |
@endforeach
{{__('messages.total')}} |
{{ $data->sum('cost') }} |
{{ $data->sum('tax') }} |
{{ $data->sum('total') }} |