@php use App\Models\Tada; @endphp @php use Illuminate\Support\Str; @endphp @php use App\Helpers\AppHelper; @endphp @extends('layouts.master') @section('title',__('index.tada')) @section('action',__('index.tada_listing')) @section('button') @can('create_tada') @endcan @endsection @section('main-content')
@include('admin.section.flash_message')

@include('admin.tada.common.breadcrumb')
{{ __('index.tada_filter') }}
@if(!isset(auth()->user()->branch_id))
@endif
{{ __('index.reset') }}
{{ __('index.tada_lists') }}
@canany(['show_tada_detail','edit_tada','delete_tada']) @endcanany @forelse($tadaLists as $key => $value) @if($value->employeeDetail) @canany(['show_tada_detail','edit_tada','delete_tada']) @endcanany @endif @empty @endforelse
# {{ __('index.employee') }} {{ __('index.title') }} {{ __('index.expense') }}({{ $currency }}) {{ __('index.status') }} {{ __('index.is_paid') }} {{ __('index.submitted_date') }}{{ __('index.action') }}
{{(($tadaLists->currentPage()- 1 ) * $tadaLists->perPage() + (++$key))}} {{($value->employeeDetail->name)}} {{ ucfirst(Str::limit($value->title, 30, $end='...')) }} {{number_format($value->total_expense)}} @if($value->status == 'accepted') {{ucfirst($value->status)}} @else {{ucfirst($value->status)}} @endif {{$value->is_settled == 1 ? 'Yes' : 'No'}} {{ AppHelper::formatDateForView($value->created_at)}}
    @can('edit_tada') @if(AppHelper::checkSuperAdmin() || ($value->is_settled == 0))
  • @endif @endcan @can('show_tada_detail')
  • @endcan @can('delete_tada') @if(AppHelper::checkSuperAdmin() || ($value->is_settled == 0))
  • @endif @endcan

{{ __('index.no_records_found') }}

{{$tadaLists->appends($_GET)->links()}}
@include('admin.tada.update_status_form') @endsection @section('scripts') @include('admin.tada.common.scripts') @endsection