dbfdg @extends('layouts.admin') @section('page-title') {{__('Manage Bills')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
@can('create bill') @endcan
@endsection @section('content')
{{ Form::open(array('route' => array('bill.index'),'method' => 'GET','id'=>'frm_submit')) }}
{{Form::label('bill_date',__('Bill Date'),['class'=>'form-label'])}} {{ Form::text('bill_date', isset($_GET['bill_date'])?$_GET['bill_date']:null, array('class' => 'form-control month-btn','id'=>'pc-daterangepicker-1','readonly')) }}
{{ Form::label('status', __('Status'),['class'=>'form-label'])}} {{ Form::select('status', [''=>'Select Status'] + $status,isset($_GET['status'])?$_GET['status']:'', array('class' => 'form-control select')) }}
{{ Form::close() }}
@if(Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill')) @endif @foreach ($bills as $bill) @if(Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill')) @endif @endforeach
{{__('Bill')}} {{__('Category')}} {{__('Bill Date')}} {{__('Due Date')}} {{__('Status')}} {{__('Action')}}
{{ AUth::user()->billNumberFormat($bill->bill_id) }} {{ !empty($bill->category)?$bill->category->name:'-'}} {{ Auth::user()->dateFormat($bill->bill_date) }} {{ Auth::user()->dateFormat($bill->due_date) }} @if($bill->status == 0) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 1) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 2) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 3) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 4) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @endif @can('duplicate bill')
{!! Form::open(['method' => 'get', 'route' => ['bill.duplicate', $bill->id],'id'=>'duplicate-form-'.$bill->id]) !!} {!! Form::close() !!}
@endcan @can('show bill') @endcan @can('edit bill') @endcan @can('delete bill')
{!! Form::open(['method' => 'DELETE', 'route' => ['bill.destroy', $bill->id],'class'=>'delete-form-btn','id'=>'delete-form-'.$bill->id]) !!} {!! Form::close() !!}
@endcan
@endsection