@extends('layouts.main') @section('page-title') {{ __('Bill Summary') }} @endsection @section('page-breadcrumb') {{ __('Report') }}, {{ __('Bill Summary') }} @endsection @push('css') @endpush @push('scripts') @endpush @section('page-action')
@endsection @section('content')
{{ Form::open(['route' => ['report.bill.summary'], 'method' => 'GET', 'id' => 'report_bill_summary']) }}
{{ Form::label('start_month', __('Start Month'), ['class' => 'form-label']) }} {{ Form::month('start_month', isset($_GET['start_month']) ? $_GET['start_month'] : date('Y-01'), ['class' => 'month-btn form-control']) }}
{{ Form::label('end_month', __('End Month'), ['class' => 'form-label']) }} {{ Form::month('end_month', isset($_GET['end_month']) ? $_GET['end_month'] : date('Y-12'), ['class' => 'month-btn form-control']) }}
{{ Form::label('vendor', __('Vendor'), ['class' => 'form-label']) }} {{ Form::select('vendor', $vendor, isset($_GET['vendor']) ? $_GET['vendor'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Vendor']) }}
{{ Form::label('status', __('Status'), ['class' => 'form-label']) }} {{ Form::select('status', $status, isset($_GET['status']) ? $_GET['status'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Status']) }}
{{ Form::close() }}
{{ __('Report') }} :
{{ __('Bill Summary') }}
@if ($filter['vendor'] != __('All'))
{{ __('Vendor') }} :
{{ $filter['vendor'] }}
@endif @if ($filter['status'] != __('All'))
{{ __('Status') }} :
{{ $filter['status'] }}
@endif
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
{{ __('Total Bill') }}
{{ currency_format_with_sym($totalBill) }}
{{ __('Total Paid') }}
{{ currency_format_with_sym($totalPaidBill) }}
{{ __('Total Due') }}
{{ currency_format_with_sym($totalDueBill) }}
@forelse ($bills as $bill) @if (module_is_active('ProductService')) @else @endif @empty @include('layouts.nodatafound') @endforelse
{{ __('Bill') }} {{ __('Date') }} {{ __('Vendor') }} {{ __('Category') }} {{ __('Status') }} {{ __('Paid Amount') }} {{ __('Due Amount') }} {{ __('Payment Date') }} {{ __('Amount') }}
{{ \Workdo\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} {{ company_date_formate($bill->send_date) }} {{ !empty($bill->vendor_name) ? $bill->vendor_name : '-' }} {{ !empty($bill->categories_name) ? $bill->categories_name : '-' }} - @if ($bill->status == 0) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 1) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 2) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 3) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 4) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @endif {{ currency_format_with_sym($bill->getTotal() - $bill->getDue()) }} {{ currency_format_with_sym($bill->getDue()) }} {{ !empty($bill->lastpayment_date) ? company_date_formate($bill->lastpayment_date) : '' }} {{ currency_format_with_sym($bill->getTotal()) }}
@forelse ($purchases as $purchase) @if(!empty($purchase->vender_name)) @elseif(empty($purchase->vender_name)) @else @if(module_is_active('Account')) @else @endif @endif @if (module_is_active('ProductService')) @else @endif @empty @include('layouts.nodatafound') @endforelse
{{ __('Purchase') }} {{ __('Date') }} {{ __('Vendor') }} {{ __('Category') }} {{ __('Status') }} {{ __('Paid Amount') }} {{ __('Due Amount') }} {{ __('Payment Date') }} {{ __('Amount') }}
{{ \App\Models\Purchase::purchaseNumberFormat($purchase->purchase_id) }} {{ company_date_formate($purchase->send_date) }} {{ (!empty( $purchase->vender_name)?$purchase->vender_name:'') }} {{($purchase->user->name)}} {{ (!empty( $purchase->vender)?$purchase->vender->name:'') }} -{{ !empty($purchase->categories_name) ? $purchase->categories_name : '-' }} - @if ($purchase->status == 0) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 1) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 2) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 3) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 4) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @endif {{ currency_format_with_sym($purchase->getTotal() - $purchase->getDue()) }} {{ currency_format_with_sym($purchase->getDue()) }} {{ !empty($purchase->lastpayment_date) ? company_date_formate($purchase->lastpayment_date) : '' }} {{ currency_format_with_sym($purchase->getTotal()) }}
@endsection