@extends('layouts.master') @section('content')
Invoice Code | Client | Service | Date | Due Date | Amount | Status | Attachment | Action |
---|---|---|---|---|---|---|---|---|
{{ $row->invoice_code }} | {{ $row->client?$row->client->company:'' }} |
@if($row->items)
@foreach($row->items as $itm)
{{ $itm->service?$itm->service->name:'' }} @endforeach @endif |
{{ date('d M, Y',strtotime($row->invoice_date)) }} | {{ date('d M, Y',strtotime($row->due_date)) }} | items?$row->items->sum('payable_amount'):0;; $total1=$row->items?$row->items->sum('payable_amount'):0; $total2=$row->items?$row->items->sum('payable_amount'):0; $total_vat=($total1*$row->vat)/100; $total_tax=($total2*$row->tax)/100; $payable=$total+$total_vat+$total_tax;; $paid=$row->items?$row->items->sum('paid_amount'):0; $due=$payable-$paid; ?>{{ $payable }} | @if($row->status==0) Due @elseif($row->status==1) Paid @endif | @if(!empty($row->attachment)) Download @else No Attachment @endif | @if(\Auth::user()->utype!=3) service?$itm->service->account_id:0 ; $client_id=$row->client?$row->client->id:0; ?> @if($row->status!=1) @endif @endif |