@extends('layouts.main') @section('page-title') {{ __('Manage Revenues') }} @endsection @section('page-breadcrumb') {{ __('Revenues') }} @endsection @section('page-action')
@stack('addButtonHook') @if (module_is_active('ProductService')) @endif @can('revenue create') @endcan
@endsection @section('content')
{{ Form::open(['route' => ['revenue.index'], 'method' => 'GET', 'id' => 'revenue_form']) }}
{{ Form::label('date', __('Date'), ['class' => 'form-label']) }} {{ Form::text('date', isset($_GET['date']) ? $_GET['date'] : null, ['class' => 'month-btn 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('customer', __('Customer'), ['class' => 'form-label']) }} {{ Form::select('customer', $customer, isset($_GET['customer']) ? $_GET['customer'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Customer']) }}
{{ 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('revenue edit') || Gate::check('revenue delete')) @endif @foreach ($revenues as $revenue) @if (module_is_active('ProductService')) @else @endif @if (Gate::check('revenue edit') || Gate::check('revenue delete')) @endif @endforeach
{{ __('Date') }} {{ __('Amount') }} {{ __('Account') }} {{ __('Customer') }} {{ __('Category') }} {{ __('Reference') }} {{ __('Description') }} {{ __('Payment Receipt') }} {{ __('Action') }}
{{ company_date_formate($revenue->date) }} {{ currency_format_with_sym($revenue->amount) }} {{ !empty($revenue->bankAccount) ? $revenue->bankAccount->bank_name . ' ' . $revenue->bankAccount->holder_name : '' }} {{ !empty($revenue->customer) ? $revenue->customer->name : '-' }}{{ !empty($revenue->category) ? $revenue->category->name : '-' }}-{{ !empty($revenue->reference) ? $revenue->reference : '-' }}

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

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