@extends('layouts.admin') @section('page-title') {{ __('Manage Bills') }} @endsection @section('breadcrumb') @if (\Auth::guard('vender')->check())
| {{ __('Bill') }} | @if (!\Auth::guard('vender')->check()){{ __('Vendor') }} | @endif{{ __('Category') }} | {{ __('Bill Date') }} | {{ __('Due Date') }} | {{ __('Status') }} | @if (Gate::check('edit bill') || Gate::check('delete bill') || Gate::check('show bill')){{ __('Action') }} | @endif
|---|---|---|---|---|---|---|
| @if (\Auth::guard('vender')->check()) {{ AUth::user()->billNumberFormat($bill->bill_id) }} @else {{ AUth::user()->billNumberFormat($bill->bill_id) }} @endif | @if (!\Auth::guard('vender')->check()){{ !empty($bill->vender) ? $bill->vender->name : '' }} | @endif{{ !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')
@if (\Auth::guard('vender')->check())
@else
@endif
@endcan
@can('edit bill')
@endcan
@can('delete bill')
@endcan
|
@endif