Viewing file: index.blade.php (4.2 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.admin') @section('page-title') {{__('Blood Collector')}} @endsection @push('script-page') @endpush @section('breadcrumb') <li class="breadcrumb-item"><a href="{{route('dashboard')}}">{{__('Dashboard')}}</a></li> <li class="breadcrumb-item">{{__('Blood Collector')}}</li> @endsection @section('action-btn') <div class="float-end">
<a href="#" data-size="lg" data-url="{{ route('bloodcollector.create') }}" data-ajax-popup="true" data-bs-toggle="tooltip" title="{{__('Create')}}" data-title="{{__('Create Blood Collector')}}" class="btn btn-sm btn-primary"> <i class="ti ti-plus"></i> </a>
</div> @endsection
@section('content') @php $profile=\App\Models\Utility::get_file('uploads/avatar/'); @endphp <div class="row"> <div class="col-xl-12"> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th>{{__('Name')}}</th> <th>{{__('Phone Number')}}</th> <th>{{__('Email')}}</th> <th>{{__('Address')}}</th> <th>{{__('Status')}}</th> <th>{{__('Action')}}</th> </tr> </thead> <tbody> @if ($bloodCollectors->isNotEmpty()) @foreach ($bloodCollectors as $bloodCollector) <tr class="font-style"> <td>{{ isset($bloodCollector->blood_collector->name) ? $bloodCollector->blood_collector->name : '' }}</td> <td>{{ isset($bloodCollector->blood_collector->phone_number) ? $bloodCollector->blood_collector->phone_number : '' }}</td> <td>{{ isset($bloodCollector->blood_collector->email) ? $bloodCollector->blood_collector->email : '' }}</td> <td>{{ isset($bloodCollector->address) ? $bloodCollector->address : '' }}</td> <td class="status"> @if ($bloodCollector->status == 'active') <span class="badge badge-success">{{__('Active')}}</span> @else <span class="badge badge-danger">{{__('Inactive')}}</span>
@endif </td> <td class="Action">
<div class="action-btn bg-info ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center" data-url="{{ route('bloodcollector.edit',$bloodCollector->id) }}" data-ajax-popup="true" data-size="lg " data-bs-toggle="tooltip" title="{{__('Edit')}}" data-title="{{__('Edit Blood Collection')}}"> <i class="ti ti-pencil text-white"></i> </a> </div>
<div class="action-btn bg-danger ms-2"> {!! Form::open(['method' => 'DELETE', 'route' => ['bloodcollector.destroy', $bloodCollector->id],'id'=>'delete-form-'.$bloodCollector->id]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{__('Delete')}}" ><i class="ti ti-trash text-white"></i></a> {!! Form::close() !!} </div>
</td>
</tr> @endforeach @endif </tbody> </table> </div> </div> </div> </div> </div> @endsection
|