@extends('organizations.layouts.default') @section('content')
@include('organizations.layouts.partials.breadcrumb') @include('organizations.layouts.components.create')
{{ ym_input([ 'type' => 'text', 'name' => 'roster_title', 'label' => 'Title', 'value' => request('roster_title'), 'placeholder' => 'Title', ]) }} {{ ym_date([ 'name' => 'start_date', 'value' => request('start_date'), 'label' => 'Start Date', ]) }} {{ ym_select([ 'name' => 'status', 'label' => 'Status', 'placeholder' => 'Select Status', 'options' => config('dropdown.roster_status'), 'value' => request('status'), ]) }}
Reset
@if ($records->count() > 0 || request()->all() != null)
@forelse ($records as $item) @empty @endforelse
S.N Title Applications Start-End Day Status Action
{{ nepali_number(++$loop->index) }}. {{ $item->roster_title }} @if ($item->rosterApplications->count() > 0) {{ $item->rosterApplications->count() }} @else 0 @endif {{ $item->start_date->format('M d, Y') }} -
{{ $item->end_date->format('M d, Y') }}
{{ config('dropdown.roster_status.' . $item->status) }}
@if ($item->status < 3)
@csrf
@endif
{{ __('table.no_data') }}
@else @include('organizations.rosters.no-roster-record') @endif
{{ $records->links('pagination::tailwind') }}
@endsection