@extends('layouts.admin') @section('page-title') {{__('Manage Payments')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create payment') @endcan
@endsection @section('content')
{{ Form::open(array('route' => array('payment.index'),'method' => 'GET','id'=>'payment_form')) }}
{{ Form::label('date', __('Date'),['class'=>'form-label']) }} {{ Form::date('date', isset($_GET['date'])?$_GET['date']:'', array('class' => 'form-control month-btn ','id'=>'pc-daterangepicker-1')) }}
{{ Form::label('account', __('Account'),['class'=>'form-label']) }} {{ Form::select('account',$account,isset($_GET['account'])?$_GET['account']:'', array('class' => 'form-control select' ,'id'=>'choices-multiple')) }}
{{ Form::label('vender', __('Vendor'),['class'=>'form-label']) }} {{ Form::select('vender',$vender,isset($_GET['vender'])?$_GET['vender']:'', array('class' => 'form-control select','id'=>'choices-multiple1')) }}
{{ Form::label('category', __('Category'),['class'=>'form-label']) }} {{ Form::select('category',$category,isset($_GET['category'])?$_GET['category']:'', array('class' => 'form-control select','id'=>'choices-multiple2')) }}
{{ Form::close() }}
@if(Gate::check('edit payment') || Gate::check('delete payment')) @endif @foreach ($payments as $payment) @if(Gate::check('edit revenue') || Gate::check('delete revenue')) @endif @endforeach
{{__('Date')}} {{__('Amount')}} {{__('Account')}} {{__('Vendor')}} {{__('Category')}} {{__('Reference')}} {{__('Description')}} {{__('Payment Receipt')}}{{__('Action')}}
{{ Auth::user()->dateFormat($payment->date)}} {{ Auth::user()->priceFormat($payment->amount)}} {{ !empty($payment->bankAccount)?$payment->bankAccount->bank_name.' '.$payment->bankAccount->holder_name:''}} {{ !empty($payment->vender)?$payment->vender->name:'-'}} {{ !empty($payment->category)?$payment->category->name:'-'}} {{ !empty($payment->reference)?$payment->reference:'-'}} {{ !empty($payment->description)?$payment->description:'-'}} @if(!empty($paymet->add_receipt)) @else - @endif @can('edit payment') @endcan @can('delete payment')
{!! Form::open(['method' => 'DELETE', 'route' => ['payment.destroy', $payment->id],'id'=>'delete-form-'.$payment->id]) !!} {!! Form::close() !!}
@endcan
@endsection