@extends('layouts.main') @section('page-title') {{ __('Manage Bills') }} @endsection @section('page-breadcrumb') {{ __('Bill') }} @endsection @section('page-action')
@stack('addButtonHook') @if (module_is_active('ProductService')) @can('bill create') @endcan @endif
@endsection @push('css') @endpush @section('content')
{{ Form::open(['route' => ['bill.grid'], 'method' => 'GET', 'id' => 'frm_submit']) }}
{{ Form::label('bill_date', __('Date'), ['class' => 'form-label']) }} {{ Form::date('bill_date', isset($_GET['bill_date']) ? $_GET['bill_date'] : null, ['class' => 'form-control form-control flatpickr-to-input', 'placeholder' => 'Select Date']) }}
@if (!\Auth::user()->type != 'vendor')
{{ Form::label('vendor', __('Vendor'), ['class' => 'form-label']) }} {{ Form::select('vendor', $vendor, isset($_GET['vendor']) ? $_GET['vendor'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Vendor']) }}
@endif
{{ Form::label('status', __('Status'), ['class' => 'form-label']) }} {{ Form::select('status', $status, isset($_GET['status']) ? $_GET['status'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Status']) }}
{{ Form::close() }}
@foreach($bills as $bill)
@if ($bill->status == 0) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 1) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 2) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 3) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 4) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @endif
{{currency_format_with_sym($bill->getTotal())}}
{{__('Total Amount')}}
{{currency_format_with_sym($bill->getDue())}}
{{__('Due Amount')}}
{{company_date_formate($bill->bill_date)}}
{{__('Issue Date')}}
{{company_date_formate($bill->due_date)}}
{{__('Due Date')}}
@if (\Auth::user()->type != 'vendor')
imageuser) ? $bill->user->avatar:'') src="{{ get_file(!empty($bill->user) ? $bill->user->avatar:'') }}" @else src="{{ 'uploads/users-avatar/avatar.png' }}" @endif class="rounded-circle " width="25" height="25">
@endif
@endforeach @auth('web') @can('bill create') @endcan @endauth
@endsection @push('scripts') @endpush