@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.BusinessName')}} | --}}
{{__('messages.REFERENCE')}} |
{{__('messages.Supplier')}} |
{{__('messages.BRANCH')}} |
{{__('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->business->business_name}} | --}}
{{ $task->reference }} |
{{ $task->suppliers->name }} |
{{ $task->branch->name }} |
{{ $task->cost }} |
{{ $task->tax }} |
{{ $task->total_amount }} |
{{ $task->purchaseType->name }} |
{{ $task->status }} |
{{ $task->user->name}} |
{{ $task->created_at}} |
@endforeach
Total |
{{ $data->sum('cost') }} |
{{ $data->sum('tax') }} |
{{ $data->sum('total_amount') }} |