@extends('layouts.main') @section('page-title') {{ __('Manage Payments') }} @endsection @section('page-breadcrumb') {{ __('Payment') }} @endsection @section('page-action')
@if (module_is_active('ProductService')) @can('bill create') @endcan @endif @can('expense payment create') @endcan
@endsection @section('content')
{{ Form::open(['route' => ['payment.index'], 'method' => 'GET', 'id' => 'payment_form']) }}
{{ Form::label('date', __('Date'), ['class' => 'form-label']) }} {{ Form::text('date', isset($_GET['date']) ? $_GET['date'] : null, ['class' => 'form-control flatpickr-to-input', 'placeholder' => 'Select Date']) }}
{{ Form::label('account', __('Account'), ['class' => 'form-label']) }} {{ Form::select('account', $account, isset($_GET['account']) ? $_GET['account'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Account']) }}
{{ Form::label('vendor', __('Vendor'), ['class' => 'form-label']) }} {{ Form::select('vendor', $vendor, isset($_GET['vendor']) ? $_GET['vendor'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Vendor']) }}
{{ Form::label('category', __('Category'), ['class' => 'form-label']) }} {{ Form::select('category', $category, isset($_GET['category']) ? $_GET['category'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Category']) }}
{{ Form::close() }}
@if (Gate::check('expense payment delete') || Gate::check('expense payment edit')) @endif @foreach ($payments as $payment) @if (module_is_active('ProductService')) @else @endif @if (Gate::check('expense payment delete') || Gate::check('expense payment edit')) @endif @endforeach
{{ __('Date') }} {{ __('Amount') }} {{ __('Account') }} {{ __('Vendor') }} {{ __('Category') }} {{ __('Reference') }} {{ __('Description') }} {{ __('Payment Receipt') }}{{ __('Action') }}
{{ company_date_formate($payment->date) }} {{ currency_format_with_sym($payment->amount) }} {{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '' }} {{ !empty($payment->vendor) ? $payment->vendor->name : '-' }}{{ !empty($payment->category) ? $payment->category->name : '-' }}-{{ !empty($payment->reference) ? $payment->reference : '-' }}

{{ !empty($payment->description) ? $payment->description : '' }}

@if (!empty($payment->add_receipt)) @else - @endif @can('expense payment edit') @endcan @can('expense payment delete')
{{ Form::open(['route' => ['payment.destroy', $payment->id], 'class' => 'm-0']) }} @method('DELETE') {{ Form::close() }}
@endcan
@endsection