dbfdg @extends('layouts.admin') @section('page-title') {{__('Manage Bills')}} @endsection @push('script-page') @endpush @section('breadcrumb')
{{__('Bill')}} | {{__('Category')}} | {{__('Bill Date')}} | {{__('Due Date')}} | {{__('Status')}} | @if(Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill')){{__('Action')}} | @endif
---|---|---|---|---|---|
{{ 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 | @if(Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill'))
@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')
@endcan
|
@endif