@extends('backend.master') @section('document-title') Sale Invoice @endsection @section('page-title') Sale Invoice Management @endsection @section('active-breadcrumb-item') Sale Invoice @endsection {{--This file must be included if Bootstrap Datatable is needed--}} @include('backend.includes.data-table') {{--Main Content of the page goes here--}} @section('content')

{{ 'Sale Invoice' }} List

@foreach($payments as $payment) @if($payment->row_id!=null) @else @endif @endforeach
Sl. Date Type Client Mobile Total Received Action
{{ $sl = $loop->iteration }} {{ dateFormat($payment->created_at,'d/m/Y') }} @if($payment->row_id!=null) {{ $payment->sale->sale_type }} @else {{ 'Received' }} @endif {{ $payment->sale->client_id==null? $payment->sale->client_name : $payment->client->name }} {{ $payment->sale->client_id==null? $payment->sale->client_mobile : $payment->client->mobile }} {{ numberFormat($payment->sale->total) }}{{ $payment->client_id!=null? $payment->client->name : '' }} {{ $payment->client_id!=null? $payment->client->mobile : '' }} {{ numberFormat($payment->amount) }} {{-- --}} {{-- --}} {{-- --}}
@endsection {{--this script override all--}} @section('script') @include('backend.client.script') @endsection {{--this style override all--}} @section('style') @include('backend.client.style') @endsection