@extends('layouts.app') @section('content')

Site Reports

{{-- @dd($info->results) --}} @php($totalAmount = $other_price = $artical = $urlPrice = $totalSubtotal = $totalServiceCharge = $totalTax = $totalDiscount = 0) @if (!empty($info->results) && $info->results->isNotEmpty()) @foreach ($info->results as $key => $row) @php($totalAmount += $row->grand_total) @php($totalSubtotal += $row->subtotal) @php($totalServiceCharge += $row->service_charge) @php($totalTax += $row->tax) @php($totalDiscount += $row->discount) @endforeach @endif
Order No Date Website Status Links Amount Writing Price Subtotal Service Charge Tax Discount Total
#{{ $row->order_no }} {{ !empty($row->created) ? date('d F, Y', strtotime($row->created)) : '' }} {{ removeHttp($row->live_url) }} @if ($row->status == 'pending') {{ strFilter($row->status) }} @elseif($row->status == 'unpaid') {{ strFilter($row->status) }} @elseif($row->status == 'delete') {{ strFilter($row->status) }} @else {{ strFilter($row->status) }} @endif Live Link: {{ $row->live_url }}
@php($anchorList = json_decode($row->anchor)) @foreach ($anchorList as $anchor) @if(!empty($anchor->anchor_text)) {{ $anchor->anchor_text }} @endif @endforeach
{{ sprintf("$%0.2f", $row->url_price) }} @if ($row->billing_type == 1) {{ sprintf("$%0.2f", $row->other_price) }} @endif @if ($row->billing_type == 3) {{ sprintf("$%0.2f", $row->artical) }} @endif {{ sprintf("$%0.2f", $row->subtotal) }} {{ sprintf("$%0.2f", $row->service_charge) }} {{ sprintf("$%0.2f", $row->tax) }} {{ sprintf("$%0.2f", $row->discount) }} {{ sprintf("$%0.2f", $row->grand_total) }}
Total {{ sprintf("$%0.2f", $totalSubtotal) }} {{ sprintf("$%0.2f", $totalServiceCharge) }} {{ sprintf("$%0.2f", $totalTax) }} {{ sprintf("$%0.2f", $totalDiscount) }} {{ sprintf("$%0.2f", $totalAmount) }}
{{ $info->results->links() }}
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush